Commit eee1048e authored by Ned Deily's avatar Ned Deily

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

parent 46268c49
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment