summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-02-08 20:30:02 (GMT)
committerCharles-François Natali <neologix@free.fr>2012-02-08 20:30:02 (GMT)
commit6f91ce74a04e958b2e5b1d1904110739eea66841 (patch)
tree4b4f62d027325b09af8a0735c9e4a51acf42ce5b
parented4a8fc0952a4211bc8bc929c23e11bebdfe9aa3 (diff)
parentb2c9e9ad91542e28a77efabe6b16a7021ccc34d3 (diff)
downloadcpython-6f91ce74a04e958b2e5b1d1904110739eea66841.zip
cpython-6f91ce74a04e958b2e5b1d1904110739eea66841.tar.gz
cpython-6f91ce74a04e958b2e5b1d1904110739eea66841.tar.bz2
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.
-rw-r--r--Lib/test/test_threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 77c4ca4..141d961 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -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.