[TIP] How do you unit test threading classes?

Tiemo Kieft t.kieft at infinitesimal.nl
Thu Jun 5 00:17:19 PDT 2014


Hi,

> Hi all, I'm a little afraid to test threading classes, and don't know how,
> How do you guys unittest threading classes? Any good articles to recommend?

I'll start of by saying that I don't have a lot of experience with
threading, I try to avoid it like
the plague. Having said that, my first suggestion would be to
encapsulate the required
functionality in a separate class or module. Separate the threading
logic from whatever
you're trying to accomplish

-- 
- Tiemo



More information about the testing-in-python mailing list