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:27:56 +01:00
parent c7fd523ac5
commit ebf691d64c
1 changed files with 1 additions and 0 deletions

View 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.