nose-devs/nose — Issue #283: nosetests raises exception when running under Python 2.6 on OS X
Author: jpellerin
Created: 2011-12-14 16:06:24+00:00
State: open

[13:01] a $touch test_a.py
[13:01] a $nosetests
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/Current/bin/nosetests", line
5, in
main()
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/core.py",
line 219, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py",
line 817, in __init__
self.runTests()
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/core.py",
line 298, in runTests
result = self.testRunner.run(self.test)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/core.py",
line 62, in run
test(result)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/suite.py",
line 132, in __call__
return self.run(*arg, **kw)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/suite.py",
line 162, in run
test(orig)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py",
line 464, in __call__
return self.run(*args, **kwds)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py",
line 457, in run
for test in self._tests:
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/suite.py",
line 76, in _get_tests
for test in self.test_generator:
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/loader.py",
line 149, in loadTestsFromDir
entry_path, discovered=True)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/loader.py",
line 377, in loadTestsFromName
module, discovered=discovered)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/loader.py",
line 311, in loadTestsFromModule
return self.suiteClass(ContextList(tests, context=module))
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/suite.py",
line 332, in __call__
return self.makeSuite(tests, context)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nose/suite.py",
line 377, in makeSuite
self.context.setdefault(suite, []).append(context)
TypeError: unhashable type: 'ContextSuite'
[13:01] a $

Google Code Info:
Issue #: 208
Author: miki.teb...@gmail.com
Created On: 2008-10-05T11:02:36.000Z
Closed On: 2008-10-05T17:36:53.000Z