Given the following:from time import sleep
def runTest(a):
sleep(1)
assert a >= 0
def test_all():for i in range(5):yield (runTest, i)
I would expect the five tests to get run in parallel running with nosetests --processes=8 and thus run in approximately one second — however, it takes just over five seconds to run: they appear to be running sequentially and not concurrently.
According to the nose documentation, the multiprocess plugin has supported test generators (as the nose documentation calls them) since 1.1: I'm using nose 1.3.0 so it should be supported. Adding _multiprocess_can_split_ = True does make any difference, as one would expect, as fixtures are not used.
How do I get these five tests to run concurrently?(This is something I posted on SO yesterday at http://stackoverflow.com/questions/16378996/python-nose-tests-from-generator-not-running-concurrently)Thanks,Geoffrey.--
You received this message because you are subscribed to the Google Groups "nose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nose-users+...@googlegroups.com.
To post to this group, send email to nose-...@googlegroups.com.
Visit this group at http://groups.google.com/group/nose-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.