changeset: 93344:e119343bc3ec parent: 93341:ef15b51d59fb parent: 93343:121517deb318 user: Ned Deily date: Sat Nov 01 19:33:25 2014 -0700 files: Misc/NEWS description: Issue #22770: merge from 3.4 diff -r ef15b51d59fb -r e119343bc3ec Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Sat Nov 01 18:42:46 2014 -0500 +++ b/Lib/test/support/__init__.py Sat Nov 01 19:33:25 2014 -0700 @@ -461,12 +461,11 @@ reason = "cannot run without OS X gui process" # check on every platform whether tkinter can actually do anything - # 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'): + if not reason: try: from tkinter import Tk root = Tk() + root.update() root.destroy() except Exception as e: err_string = str(e) diff -r ef15b51d59fb -r e119343bc3ec Misc/NEWS --- a/Misc/NEWS Sat Nov 01 18:42:46 2014 -0500 +++ b/Misc/NEWS Sat Nov 01 19:33:25 2014 -0700 @@ -1342,6 +1342,8 @@ - Issue #21093: Prevent failures of ctypes test_macholib on OS X if a copy of libz exists in $HOME/lib or /usr/local/lib. +- Issue #22770: Prevent some Tk segfaults on OS X when running gui tests. + Tools/Demos -----------