summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-10-10 22:20:52 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-10-10 22:20:52 (GMT)
commitbcd8ac396426f4bf649266aec5bbcf46f851a188 (patch)
tree940c3ef58d3ce33c95c65f51c3db80166f19606d /Lib/test/test_threading.py
parentcf8016a8d6b3fed550ed961ffd957ab3d19f04da (diff)
downloadcpython-bcd8ac396426f4bf649266aec5bbcf46f851a188.zip
cpython-bcd8ac396426f4bf649266aec5bbcf46f851a188.tar.gz
cpython-bcd8ac396426f4bf649266aec5bbcf46f851a188.tar.bz2
Merged revisions 66703,66708 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r66703 | gregory.p.smith | 2008-09-30 15:41:13 -0500 (Tue, 30 Sep 2008) | 6 lines Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when calling fork() from a child thread. This disables that unit test (with a note printed to stderr) on those platforms. A caveat about buggy platforms is added to the os.fork documentation. ........ r66708 | andrew.macintyre | 2008-09-30 22:25:25 -0500 (Tue, 30 Sep 2008) | 9 lines fix for issue 3862: test_array fails FreeBSD 7 amd64 FreeBSD 7's underlying malloc() is behaves differently to earlier versions and seriously overcommits available memory on amd64. This may affect other 64bit platforms in some circumstances, so the scale of the problematic test is wound back. Patch by Mark Dickinson, reviewed by Martin von Loewis. ........
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 a7f2322..f26e7bb 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -397,6 +397,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.current_thread()
def worker():