mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Issue #8716: Fix errors in the non-OS X path of the 27 backport.
This commit is contained in:
parent
46268c49f6
commit
eee1048e7b
1 changed files with 2 additions and 1 deletions
|
@ -37,9 +37,10 @@ def check_tk_availability():
|
||||||
if stderr or p.returncode:
|
if stderr or p.returncode:
|
||||||
raise unittest.SkipTest("tk cannot be initialized: %s" % stderr)
|
raise unittest.SkipTest("tk cannot be initialized: %s" % stderr)
|
||||||
else:
|
else:
|
||||||
|
import Tkinter
|
||||||
try:
|
try:
|
||||||
Tkinter.Button()
|
Tkinter.Button()
|
||||||
except tkinter.TclError as msg:
|
except Tkinter.TclError as msg:
|
||||||
# assuming tk is not available
|
# assuming tk is not available
|
||||||
raise unittest.SkipTest("tk not available: %s" % msg)
|
raise unittest.SkipTest("tk not available: %s" % msg)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue