]> granicus.if.org Git - python/commitdiff
Backport of r66703:
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 13 Dec 2008 14:42:53 +0000 (14:42 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 13 Dec 2008 14:42:53 +0000 (14:42 +0000)
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
Misc/NEWS

index ce25d8d74557161780b3fbaf64c4ff11ccefb06d..cc9da0582b9d11650f1a82b60767f99caadea851 100644 (file)
@@ -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():
index a98ae2c223ac63de75d2b2fff71c61e7f58790d3..435961c1625f497051c94c654db5c3762c22875d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -250,6 +250,9 @@ Extension Modules
 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.
 
 - Patch #2232: os.tmpfile might fail on Windows if the user has no