[Python-Dev] should tests be thread-safe?
Akira Li
4kir4.1i at gmail.com
Sun May 11 14:02:31 CEST 2014
Victor Stinner <victor.stinner at gmail.com> writes:
> If you need a well defined environement, run your test in a subprocess.
> Depending on the random function, your test may be run with more threads.
> On BSD, it changes for example which thread receives a signal. Importing
> the tkinter module creates a "hidden" C thread for the Tk loop.
Does it mean that non-thread-safe tests can't be run using a GUI test
runner that is implemented using tkinter?
--
akira
More information about the Python-Dev
mailing list