]> granicus.if.org Git - python/commitdiff
In Python3000, Tkinter was renamed to tkinter. And print is now function.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 18 Sep 2010 04:42:41 +0000 (04:42 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sat, 18 Sep 2010 04:42:41 +0000 (04:42 +0000)
Lib/test/test_tcl.py

index 19c75aff2f696bb09631336fb62a919fed117ec8..f2a77688752e6afdbbd436c75dc266e228994250 100644 (file)
@@ -145,9 +145,9 @@ class TclTest(unittest.TestCase):
 
         with support.EnvironmentVarGuard() as env:
             env.unset("TCL_LIBRARY")
-            f = os.popen('%s -c "import Tkinter; print Tkinter"' % (unc_name,))
+            f = os.popen('%s -c "import tkinter; print(tkinter)"' % (unc_name,))
 
-        self.assert_('Tkinter.py' in f.read())
+        self.assertIn('tkinter', f.read())
         # exit code must be zero
         self.assertEqual(f.close(), None)