how to test thread safety of a module?
<p>I want to use a module to help serve pages in cherryPy.  The module works great in a single thread, and it does not use inter-thread communications (queues, ...). Still, there is a slight possibility that some side effects (e.g. via global) may occur in a multi-threaded environment such as CherryPy.</p>

<p>What test strategy or test program can I use to verify the thread safety of the python module / function ? Is there anything better than monkey testing ? Are there any thread-safety testing framework for python ?</p>

<p>(I've seen the responses for similar questions in other languages)</p>
