changeset: 71187:06cb0d602468 branch: 2.7 parent: 71184:ea02eca122b5 user: Ned Deily date: Sun Jul 03 23:16:49 2011 -0700 files: Lib/lib-tk/test/runtktests.py description: Issue #8716: Fix errors in the non-OS X path of the 27 backport. diff -r ea02eca122b5 -r 06cb0d602468 Lib/lib-tk/test/runtktests.py --- a/Lib/lib-tk/test/runtktests.py Sun Jul 03 21:52:35 2011 -0700 +++ b/Lib/lib-tk/test/runtktests.py Sun Jul 03 23:16:49 2011 -0700 @@ -37,9 +37,10 @@ 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)

AltStyle によって変換されたページ (->オリジナル) /