Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Directories ending in ".py" crash nose #526
Windows 7-x64, Python 3.2.3
I've also have a full log, but the problem seems to lie in importer.py
referenced this issue
Jul 10, 2012
@madisona I don't seem to have any issues when I use something like "dotted.dir" for my directory name, even with a file "dotted.dir.py". What seems to cause it is that nose looks for files ending in .py, and then tries to import them for test discovery. I think a simple rename as you suggest in issue 19 is the best bet for the time being.
I looked a little bit into this.
Apparently loader.py calls importer.py to try to load the directory as if it was a source file that contains tests.