Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed tests sometimes incorrectly reports modnames instead of modpaths #16

Open
2 tasks
Erotemic opened this issue May 16, 2018 · 0 comments
Open
2 tasks

Comments

@Erotemic
Copy link
Owner

Erotemic commented May 16, 2018

I'm running doctests in a file with a xdoctest main block (i.e. xdoctest.doctest_module(__file__)) using the command

python ~/code/netharn/netharn/examples/yolo_voc.py all

When failures are reported they are printed as

python -m xdoctest yolo_voc YoloVOCDataset:1
python -m xdoctest yolo_voc YoloVOCDataset.__getitem__:0
python -m xdoctest yolo_voc YoloVOCDataset.__getitem__:1

This is incorrect because yolo_voc is not a module in my PYTHONPATH.

It would be good to:

  • Add tests that reproduce this error
  • Write the appropriate fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant