From: Charles-François Natali Date: Wed, 8 Feb 2012 20:27:56 +0000 (+0100) Subject: Skip test_threading.test_reinit_tls_after_fork() on platforms where fork() X-Git-Tag: v2.7.3rc1~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebf691d64cde6492f075d65e9f87651124aa19f4;p=python 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 e617fa1275..1a02ef2e31 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -636,6 +636,7 @@ class ThreadJoinOnShutdown(BaseTestCase): self.assertScriptHasOutput(script, output) @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.