diff options
author | Ned Deily <nad@acm.org> | 2014-05-04 02:24:05 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-05-04 02:24:05 (GMT) |
commit | 88b5b6ddf60c38f54d0c656d883b0aed6cb03987 (patch) | |
tree | 84d323d12ebca74727416133accdf2002565a349 /Lib | |
parent | 3d678e3b12b376dbb1f65fdff11b0c14bcc93bc6 (diff) | |
download | cpython-88b5b6ddf60c38f54d0c656d883b0aed6cb03987.zip cpython-88b5b6ddf60c38f54d0c656d883b0aed6cb03987.tar.gz cpython-88b5b6ddf60c38f54d0c656d883b0aed6cb03987.tar.bz2 |
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).
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index d26281a..40aab96 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() |