diff options
Diffstat (limited to 'Lib/lib-tk/test/runtktests.py')
-rw-r--r-- | Lib/lib-tk/test/runtktests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-tk/test/runtktests.py b/Lib/lib-tk/test/runtktests.py index 041814d..19769ad 100644 --- a/Lib/lib-tk/test/runtktests.py +++ b/Lib/lib-tk/test/runtktests.py @@ -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) |