mirror of
https://github.com/python/cpython.git
synced 2024-12-19 23:04:14 +08:00
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:
commit
6f91ce74a0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user