]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:29:11 +0000 (21:29 +0100)
committerCharles-François Natali <neologix@free.fr>
Wed, 8 Feb 2012 20:29:11 +0000 (21:29 +0100)
can't be called reliably from a worker thread.

Lib/test/test_threading.py

index e3de16d76c0ebedc5a21351ff2d1e9f16a5fe12a..32637b5b29c8a00f5ad349df629ccab239037fce 100644 (file)
@@ -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.