changeset: 90556:7ecb6e4b1077 branch: 3.4 parent: 90550:b8f5c8d07365 user: Ned Deily date: Sat May 03 19:24:05 2014 -0700 files: Lib/test/support/__init__.py description: 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 -r b8f5c8d07365 -r 7ecb6e4b1077 Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Sat May 03 20:18:50 2014 -0400 +++ b/Lib/test/support/__init__.py Sat May 03 19:24:05 2014 -0700 @@ -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()