Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2c9e9a

Browse files
author
Charles-François Natali
committed
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.
1 parent 73d1da3 commit b2c9e9a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_threading.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ def main():
667667
self.assertFalse(err)
668668

669669
@unittest.skipUnless(hasattr(os, 'fork'), "needs os.fork()")
670+
@unittest.skipIf(sys.platform in platforms_to_skip, "due to known OS bug")
670671
def test_reinit_tls_after_fork(self):
671672
# Issue #13817: fork() would deadlock in a multithreaded program with
672673
# the ad-hoc TLS implementation.

0 commit comments

Comments
 (0)