This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, mattchaput
Date 2011-02-18.17:51:13
SpamBayes Score 0.00055020425
Marked as misclassified No
Message-id <1298051475.32.0.970619369745.issue11240@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-02-18 17:51:15amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, mattchaput
2011-02-18 17:51:15amaury.forgeotdarcsetmessageid: <1298051475.32.0.970619369745.issue11240@psf.upfronthosting.co.za>
2011-02-18 17:51:13amaury.forgeotdarclinkissue11240 messages
2011-02-18 17:51:13amaury.forgeotdarccreate