A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-May/134525.html below:

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

[Python-Dev] should tests be thread-safe? [Python-Dev] should tests be thread-safe?Nick Coghlan ncoghlan at gmail.com
Sat May 10 13:41:40 CEST 2014
On 10 May 2014 06:53, "akira" <4kir4.1i at 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 at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140510/65509383/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4