summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-05-03 19:25:34 -0700
committerNed Deily <nad@acm.org>2014-05-03 19:25:34 -0700
commit71ac07f8baf21bf7a116e97accc12804f1afcdd4 (patch)
tree7a0afbd8ade9f710fdcddea8c0ba43fe434a1a85 /Lib/test
parent3170d1cccb15d7ad94658944e3aba1a1e753adbf (diff)
parent88b5b6ddf60c38f54d0c656d883b0aed6cb03987 (diff)
downloadcpython-git-71ac07f8baf21bf7a116e97accc12804f1afcdd4.tar.gz
Issue #18604: merge from 3.4
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/support/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index d26281a2fb..40aab96c30 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -434,7 +434,9 @@ def _is_gui_available():
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()