[Python-Dev] should tests be thread-safe?

akira 4kir4.1i at gmail.com
Fri May 9 21:53:06 CEST 2014


Hi,

May tests expect that unless they themselves start a thread then there 
are no threads to worry about?

I see that some old tests are not thread-safe and I have not found it to 
be explicitly mentioned in the devguide.

I've written a test for http://bugs.python.org/issue21332 that is known 
to be non-thread-safe. Is it acceptable for new tests?


--
akira


More information about the Python-Dev mailing list