]> granicus.if.org Git - python/commitdiff
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
authorCharles-François Natali <neologix@free.fr>
Wed, 8 Feb 2012 20:27:56 +0000 (21:27 +0100)
committerCharles-François Natali <neologix@free.fr>
Wed, 8 Feb 2012 20:27:56 +0000 (21:27 +0100)
can't be called reliably from a worker thread.

Lib/test/test_threading.py

index e617fa1275a56d85be00f135117fd742bcd0245c..1a02ef2e314765f5e6f497a6232ee3a5e81eb0ea 100644 (file)
@@ -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.