[Python-Dev] should tests be thread-safe?
Nick Coghlan
ncoghlan at gmail.com
Sat May 10 13:41:40 CEST 2014
More information about the Python-Dev mailing list
Sat May 10 13:41:40 CEST 2014
- Previous message: [Python-Dev] should tests be thread-safe?
- Next message: [Python-Dev] should tests be thread-safe?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: [Python-Dev] should tests be thread-safe?
- Next message: [Python-Dev] should tests be thread-safe?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list