nose-devs/nose — Issue #125: multiprocess functionality does not play way with generators
Author: jpellerin
Created: 2011-12-14 15:59:59+00:00
State: closed

What steps will reproduce the problem?

1.create a simple test generator function like:

def test_foo():
for i in range(10):
yield foosleep, i

def foosleep(n):
time.sleep(4)

What is the expected output? What do you see instead?

Using --processes=10, all tests should complete in ~4s.
Instead, it takes 40s since the next test does not start until the last is finished.

What version of the product are you using? On what operating system?

1.0.0 on ubuntu 10.04 x86-64

Please provide any additional information below.

i'm guessing we need a way to collect all tests before they are sent to the parallelizer?

Google Code Info:
Issue #: 399
Author: ffxvzero@gmail.com
Created On: 2011-02-19T09:04:15.000Z
Closed On: 2011-05-02T19:59:00.000Z