nose-devs/nose — Issue #457: shared fixture setup/teardown is not executed
Author: jpellerin
Created: 2011-12-14 16:11:57+00:00
State: open

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
----------------------------------------------------------------------
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

Google Code Info:
Issue #: 463
Author: liucou...@gmail.com
Created On: 2011-10-24T23:16:05.000Z
Closed On: