Commit 358076f3 authored by Martin v. Löwis's avatar Martin v. Löwis

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.
parent 46d41061
...@@ -277,6 +277,12 @@ class ThreadJoinOnShutdown(unittest.TestCase): ...@@ -277,6 +277,12 @@ class ThreadJoinOnShutdown(unittest.TestCase):
import os import os
if not hasattr(os, 'fork'): if not hasattr(os, 'fork'):
return 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: script = """if 1:
main_thread = threading.currentThread() main_thread = threading.currentThread()
def worker(): def worker():
......
...@@ -250,6 +250,9 @@ Extension Modules ...@@ -250,6 +250,9 @@ Extension Modules
Tests Tests
----- -----
- 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.
- Issue #3261: test_cookielib had an improper file encoding specified. - Issue #3261: test_cookielib had an improper file encoding specified.
- Patch #2232: os.tmpfile might fail on Windows if the user has no - Patch #2232: os.tmpfile might fail on Windows if the user has no
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment