mirror of https://github.com/python/cpython
Issue #8716: Fix errors in the non-OS X path of the 27 backport.
This commit is contained in:
parent
46268c49f6
commit
eee1048e7b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue