Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()

can't be called reliably from a worker thread.
This commit is contained in:
Charles-François Natali 2012-02-08 21:30:02 +01:00
commit 6f91ce74a0
1 changed files with 1 additions and 0 deletions

View File

@ -675,6 +675,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.