diff options
author | Ned Deily <nad@acm.org> | 2011-07-04 06:16:49 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2011-07-04 06:16:49 (GMT) |
commit | eee1048e7b3ed47b2dc76db8bd9dcd7d4dffd94b (patch) | |
tree | 331619bdbbf92400d1e70742d7ed49885d26623a /Lib | |
parent | 46268c49f66903aca8f7546e398249df9141758b (diff) | |
download | cpython-eee1048e7b3ed47b2dc76db8bd9dcd7d4dffd94b.zip cpython-eee1048e7b3ed47b2dc76db8bd9dcd7d4dffd94b.tar.gz cpython-eee1048e7b3ed47b2dc76db8bd9dcd7d4dffd94b.tar.bz2 |
Issue #8716: Fix errors in the non-OS X path of the 27 backport.
Diffstat (limited to 'Lib')
-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) |