[TIP] best way to deal with multi-threaded code and doctests

Noah Gift noah.gift at gmail.com
Fri Sep 7 11:06:24 PDT 2007


Hi,

I have some code that is massively multi-threaded, but I want to make
sure there are really good doctests as well as unittests.  It seems
like testing a thread with a doctest is particular challenging as you
lose control in the python interpreter.  Is there a technique to get
around this that I am missing?


Noah Gift



More information about the testing-in-python mailing list