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:
Ned Deily 2011-07-03 21:56:48 -07:00
parent 9ebe08d2f6
commit 4143535d86
4 changed files with 52 additions and 8 deletions

View file

@ -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