From: Hirokazu Yamamoto Date: Sat, 18 Sep 2010 04:42:41 +0000 (+0000) Subject: In Python3000, Tkinter was renamed to tkinter. And print is now function. X-Git-Tag: v3.2a3~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2dec8d6f1f8816959503e45f4a653f56e6715c6;p=python In Python3000, Tkinter was renamed to tkinter. And print is now function. --- diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 19c75aff2f..f2a7768875 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -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)