On 10 May 2014 06:53, "akira" <4kir4.1i@gmail.com> wrote:
>
> 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?

Thread safety is desirable, but not mandatory, since there is some process global state (e.g. the import system and the sys module in general) that the tests sometimes need to manipulate.

Cheers,
Nick.

>
>
> --
> akira
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com