Message128797
Nose works correctly for me with multiprocessing. In a directory, I have:
== run_nose.py =================
from nose import main
if __name__ == '__main__':
main()
================================
== test_me.py ==================
from multiprocessing import Pool
import os, time
def foo(x):
time.sleep(0.1)
return (x, os.getpid())
def test_me():
pool = Pool(processes=4)
x = pool.map(foo, range(10))
a, b = zip(*x)
print a, b
assert list(a) == range(10)
assert 1 < len(set(b)) <= 4
================================
Now when I do: "c:\python27\python run_nose.py" the test runs correctly.
Can you try this test in your environment? |
|
Date |
User |
Action |
Args |
2011-02-18 17:51:15 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, mattchaput |
2011-02-18 17:51:15 | amaury.forgeotdarc | set | messageid: <1298051475.32.0.970619369745.issue11240@psf.upfronthosting.co.za> |
2011-02-18 17:51:13 | amaury.forgeotdarc | link | issue11240 messages |
2011-02-18 17:51:13 | amaury.forgeotdarc | create | |
|