[Python-checkins] cpython (merge 3.2 -> default): 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:35 CET 2012


http://hg.python.org/cpython/rev/ca377b89ab6b
changeset: 74831:ca377b89ab6b
parent: 74828:434301d9f664
parent: 74830:29b83d3d40d0
user: Charles-François Natali <neologix at free.fr>
date: Wed Feb 08 21:30:02 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
@@ -675,6 +675,7 @@
 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.
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /