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

ned.deily python-checkins at python.org
Sun May 4 04:25:58 CEST 2014


http://hg.python.org/cpython/rev/7ecb6e4b1077
changeset: 90556:7ecb6e4b1077
branch: 3.4
parent: 90550:b8f5c8d07365
user: Ned Deily <nad at acm.org>
date: Sat May 03 19:24:05 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/support/__init__.py | 4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -434,7 +434,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

AltStyle によって変換されたページ (->オリジナル) /