From 358076f3e4251c49ae028b81f031fc9f8287ec28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 13 Dec 2008 14:42:53 +0000 Subject: Backport of r66703: Issue #3863: Disabled a unit test of fork being called from a thread when running on platforms known to exhibit OS bugs when attempting that. --- Lib/test/test_threading.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/test/test_threading.py') diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index ce25d8d745..cc9da0582b 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -277,6 +277,12 @@ class ThreadJoinOnShutdown(unittest.TestCase): import os if not hasattr(os, 'fork'): return + # Skip platforms with known problems forking from a worker thread. + # See http://bugs.python.org/issue3863. + if sys.platform in ('freebsd4', 'freebsd5', 'freebsd6', 'os2emx'): + print >>sys.stderr, ('Skipping test_3_join_in_forked_from_thread' + ' due to known OS bugs on'), sys.platform + return script = """if 1: main_thread = threading.currentThread() def worker(): -- cgit v1.2.1