nose-devs/nose — Issue #348: Windows only; when using a large amount of directories to search in nose breaks
Author: jpellerin
Created: 2011-12-14 16:08:48+00:00
State: open

What steps will reproduce the problem?
1. When using arguments "--with-coverage", "--cover-erase",
"--cover-inclusive" and multiple (+3) --cover-package= and multiple source
directories, nose will break if it can' t resolve all module imports

This does not occur on Linux only on windows, probably a limitation of
windows. Current solution - Don't do that :-)

Traceback (most recent call last):
File "c:\custom25\Scripts\nosetests-script.py", line 8, in
load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\core.py",
line 113, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File "C:\custom25\lib\unittest.py", line 767, in __init__
self.parseArgs(argv)
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\core.py",
line 164, in parseArgs
self.createTests()
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\core.py",
line 178, in createTests
self.test = self.testLoader.loadTestsFromNames(self.testNames)
File
"c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\loader.py", line
442, in loadTestsFromNames
return unittest.TestLoader.loadTestsFromNames(self, names, module)
File "C:\custom25\lib\unittest.py", line 566, in loadTestsFromNames
return self.suiteClass(suites)
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\suite.py",
line 398, in __call__
return self.makeSuite(self.mixedSuites(tests), None, **kw)
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\suite.py",
line 496, in mixedSuites
for test_ancestor in self.ancestry(test_ctx):
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\suite.py",
line 423, in ancestry
yield resolve_name('.'.join(ancestors))
File "c:\custom25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\util.py",
line 344, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute
'_remove_to_protect_the_innocent_but_module_can_be_imported_in_the_interpreter_'

Google Code Info:
Issue #: 294
Author: martin.h...@gtempaccount.com
Created On: 2009-10-07T16:48:49.000Z
Closed On: