Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Unit testing multiprocessing code on Windows

Reply
Thread Tools

Unit testing multiprocessing code on Windows

 
 
Matt Chaput
Guest
Posts: n/a
 
      02-17-2011
Does anyone know the "right" way to write a unit test for code that uses
multiprocessing on Windows?

The problem is that with both "python setup.py tests" and "nosetests",
when they get to a multiprocessing test they spawn multiple copies of
the testing suite. The test runner in PyDev works properly.

Maybe multiprocessing is starting new Windows processes by copying the
command line of the current process, but if the command line is
"nosetests", it's a one way ticket to an infinite explosion of processes.

Any thoughts?

Thanks,

Matt
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Webinar - Testing the Untestable - Unit Testing Dependencies andLegacy Code (in C++) Avi C Programming 0 06-11-2012 01:55 PM
[ANN] Webinar - Testing the Untestable - Unit Testing Dependenciesand Legacy Code in C++ Avi C++ 0 06-06-2012 11:25 AM
unit-profiling, similar to unit-testing Ulrich Eckhardt Python 6 11-18-2011 02:00 AM
Unit testing multiprocessing code on Windows Matt Chaput Python 0 02-17-2011 11:31 PM
Test::Unit - Ruby Unit Testing Framework Questions Bill Mosteller Ruby 0 10-22-2009 02:02 PM



Advertisments