mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
parent
46d410616d
commit
358076f3e4
2 changed files with 9 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue