[Python-checkins] cpython (2.7): Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()

charles-francois.natali python-checkins at python.org
Wed Feb 8 21:30:34 CET 2012


http://hg.python.org/cpython/rev/a47f97bd3c33
changeset:   74829:a47f97bd3c33
branch:      2.7
parent:      74811:631e99961c5f
user:        Charles-François Natali <neologix at free.fr>
date:        Wed Feb 08 21:27:56 2012 +0100
summary:
  Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.

files:
  Lib/test/test_threading.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -636,6 +636,7 @@
         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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list