extract the attached archive, which creates a directory called t
with 1.1.3, run:
nosetests --processes=1 -d t.test:TestFunctionalTest.test1
the output is:
E
======================================================================
ERROR: test suite for <class 't.test.TestFunctionalTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nose/suite.py", line 208, in run
self.setUp()
File "/usr/lib/python2.6/site-packages/nose/suite.py", line 291, in setUp
self.setupContext(ancestor)
File "/usr/lib/python2.6/site-packages/nose/plugins/multiprocess.py", line 526, in setupContext
super(NoSharedFixtureContextSuite, self).setupContext(context)
File "/usr/lib/python2.6/site-packages/nose/suite.py", line 314, in setupContext
try_run(context, names)
File "/usr/lib/python2.6/site-packages/nose/util.py", line 478, in try_run
return func()
File "/home/tp/git/python-nose/t/test.py", line 7, in setup_class
assert counter[0]==1
AssertionError:
-------------------- >> begin captured stdout << ---------------------
setup_class [0]
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 0 tests in 0.022s
FAILED (errors=1)
the same happens for nose 1.0.0
without multiprocess plugin enabled, both 1.0.0 and 1.1.3 work as expected.
the error is only reproducible if _multiprocess_shared_ = True is set in both
the package and the module
Original issue reported on code.google.com by liucou...@gmail.com on 24 Oct 2011 at 11:16
Original issue reported on code.google.com by
liucou...@gmail.com
on 24 Oct 2011 at 11:16Attachments: