[Python-checkins] cpython (2.7): Issue #8716: Fix errors in the non-OS X path of the 27 backport.

ned.deily python-checkins at python.org
Mon Jul 4 08:17:38 CEST 2011


http://hg.python.org/cpython/rev/06cb0d602468
changeset:   71187:06cb0d602468
branch:      2.7
parent:      71184:ea02eca122b5
user:        Ned Deily <nad at acm.org>
date:        Sun Jul 03 23:16:49 2011 -0700
summary:
  Issue #8716: Fix errors in the non-OS X path of the 27 backport.

files:
  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
--- a/Lib/lib-tk/test/runtktests.py
+++ b/Lib/lib-tk/test/runtktests.py
@@ -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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list