Issue #8716: Fix errors in the non-OS X path of the 27 backport.

This commit is contained in:
Ned Deily 2011-07-03 23:16:49 -07:00
parent 46268c49f6
commit eee1048e7b
1 changed files with 2 additions and 1 deletions

View File

@ -37,9 +37,10 @@ def check_tk_availability():
if stderr or p.returncode:
raise unittest.SkipTest("tk cannot be initialized: %s" % stderr)
else:
import Tkinter
try:
Tkinter.Button()
except tkinter.TclError as msg:
except Tkinter.TclError as msg:
# assuming tk is not available
raise unittest.SkipTest("tk not available: %s" % msg)