summaryrefslogtreecommitdiff
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-12-13 14:42:53 +0000
committerMartin v. Löwis <martin@v.loewis.de>2008-12-13 14:42:53 +0000
commit358076f3e4251c49ae028b81f031fc9f8287ec28 (patch)
treebeb0d6be8e983acc16a2c58b463314eb3ad15cfe /Lib/test/test_threading.py
parent46d410616d91afbcfff6ac9ece42b01c2cbb86e0 (diff)
downloadcpython-git-358076f3e4251c49ae028b81f031fc9f8287ec28.tar.gz
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.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py6
1 files changed, 6 insertions, 0 deletions
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():