mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #18604: merge from 3.4
This commit is contained in:
commit
71ac07f8ba
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue