nose-devs/nose — Issue #499: multiprocess plugin in 1.1.3 doesn't parallelize generators
Author: rdiankov
Created: 2012-02-19 03:30:57+00:00
State: open

in 1.1.2 multiprocess plugin used to execute generators in a different process, now it executes all generated tests in the same parent process.. unfortunately this is not desired behavior. The code that is missing (was deleted) is in NoSharedFixtureContextSuite.run:

```
localtests = [test for test in self._tests]
if len(localtests) > 1 and self.testQueue is not None:
log.debug("queue %d tests"%len(localtests))
for test in localtests:
if not isinstance(test,NoSharedFixtureContextSuite) and isinstance(test.test,nose.failure.Failure):
# proably failed in the generator, so execute directly
# to get the exception
test(orig)
else:
MultiProcessTestRunner.addtask(self.testQueue, self.tasks, test)
else:
```