mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged in to the console windowserver (as may be the case under buildbot or ssh).
This commit is contained in:
parent
9ebe08d2f6
commit
4143535d86
4 changed files with 52 additions and 8 deletions
|
|
@ -5,6 +5,10 @@ from test import support
|
|||
# Skip this test if _tkinter wasn't built.
|
||||
support.import_module('_tkinter')
|
||||
|
||||
# Skip test if tk cannot be initialized.
|
||||
from tkinter.test.support import check_tk_availability
|
||||
check_tk_availability()
|
||||
|
||||
from _tkinter import TclError
|
||||
from tkinter import ttk
|
||||
from tkinter.test import runtktests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue