nose-devs/nose — Issue #456: class fixture are not properly handled in multiprocess 
Author: jpellerin
Created: 2011-12-14 16:11:55+00:00
State: open

create a test.py file with the following content:
class TestFunctionalTest(object):
counter = 0
@classmethod
def setup_class(cls):
cls.counter += 1
@classmethod
def teardown_class(cls):
cls.counter -= 1
def _runSingleFT(self,file):
assert self.counter==1
def test1(self):
self._runSingleFT(None)
def test2(self):
self._runSingleFT(None)

with nosetests 1.1.2:
nosetests --processes=2 test.py

both of test1 and test2 fail because self.counter is 0

without multiprocess plugin, all tests pass. nosetests 1.0.0 multiprocess works properly with this test case, so this is a regression

Google Code Info:
Issue #: 462
Author: liucou...@gmail.com
Created On: 2011-10-24T19:43:23.000Z
Closed On: 2011-11-02T17:26:41.000Z