From: Charles-François Natali Date: Wed, 8 Feb 2012 20:29:11 +0000 (+0100) Subject: Skip test_threading.test_reinit_tls_after_fork() on platforms where fork() X-Git-Tag: v3.2.3rc1~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2c9e9ad91542e28a77efabe6b16a7021ccc34d3;p=thirdparty%2FPython%2Fcpython.git Skip test_threading.test_reinit_tls_after_fork() on platforms where fork() can't be called reliably from a worker thread. --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index e3de16d76c0e..32637b5b29c8 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -667,6 +667,7 @@ class ThreadJoinOnShutdown(BaseTestCase): self.assertFalse(err) @unittest.skipUnless(hasattr(os, 'fork'), "needs os.fork()") + @unittest.skipIf(sys.platform in platforms_to_skip, "due to known OS bug") def test_reinit_tls_after_fork(self): # Issue #13817: fork() would deadlock in a multithreaded program with # the ad-hoc TLS implementation.