[Python-checkins] cpython (2.7): Issue #18604: Skip the Tk instantiation test on OS X because it can

ned.deily python-checkins at python.org
Sat May 24 06:30:26 CEST 2014


http://hg.python.org/cpython/rev/fef11a65a5e5
changeset:   90813:fef11a65a5e5
branch:      2.7
parent:      90808:c7ee46ed2d70
user:        Ned Deily <nad at acm.org>
date:        Fri May 23 21:28:02 2014 -0700
summary:
  Issue #18604: Skip the Tk instantiation test on OS X because it can
cause GUI tests to segfault in Cocoa Tk when run under regrtest -j
(multiple threads running subprocesses).

files:
  Lib/test/test_support.py |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -326,7 +326,9 @@
                 reason = "cannot run without OS X gui process"
 
     # check on every platform whether tkinter can actually do anything
-    if not reason:
+    # but skip the test on OS X because it can cause segfaults in Cocoa Tk
+    # when running regrtest with the -j option (multiple threads/subprocesses)
+    if (not reason) and (sys.platform != 'darwin'):
         try:
             from Tkinter import Tk
             root = Tk()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list