nose-devs/nose — Issue #27: Cannot test an uninstalled instance of nose
Author: jpellerin
Created: 2011-12-14 15:55:50+00:00
State: closed

When trying to test an uninstalled instance of nose (another instance being
installed), imports fail to happen properly. The same thing happens when
running "PYTHONPATH=. python nose/core.py". This is the error message:

$ PYTHONPATH=. python nose/core.py --stop
E
======================================================================
ERROR: test_load_in_def_order (test_bug105.TestBug105)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/antoine/nose/profiler-tmp-leak/unit_tests/test_bug105.py",
line 16, in test_load_in_def_order
testmod.setUp()
File "/home/antoine/nose/config-file/nose/suite.py", line 200, in setUp
self.module = _import(self.moduleName, [self.path], self.conf)
File "/home/antoine/nose/config-file/nose/importer.py", line 101, in _import
mod = load_module(fqname, fh, filename, desc)
File
"/home/antoine/nose/profiler-tmp-leak/unit_tests/support/bug105/tests.py",
line 1, in
from nose import tools
ImportError: cannot import name tools

-------------------- >> begin captured stdout << ---------------------
test module tests in
/home/antoine/nose/profiler-tmp-leak/unit_tests/support/bug105

--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 1 test in 0.018s

FAILED (errors=1)

Google Code Info:
Issue #: 49
Author: antoine....@gmail.com
Created On: 2007-04-10T12:16:03.000Z
Closed On: 2008-03-25T02:13:35.000Z