From: Ned Deily Date: Sun, 4 May 2014 02:24:05 +0000 (-0700) Subject: Issue #18604: Skip the Tk instantiation test on OS X because it can X-Git-Tag: v3.4.1rc1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88b5b6ddf60c38f54d0c656d883b0aed6cb03987;p=python 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). --- 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()