From: Ned Deily Date: Mon, 4 Jul 2011 06:16:49 +0000 (-0700) Subject: Issue #8716: Fix errors in the non-OS X path of the 27 backport. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eee1048e7b3ed47b2dc76db8bd9dcd7d4dffd94b;p=python Issue #8716: Fix errors in the non-OS X path of the 27 backport. --- diff --git a/Lib/lib-tk/test/runtktests.py b/Lib/lib-tk/test/runtktests.py index 041814d0ea..19769adac7 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)