In Python3000, Tkinter was renamed to tkinter. And print is now function.

This commit is contained in:
Hirokazu Yamamoto 2010-09-18 04:42:41 +00:00
parent 35aa08376b
commit f2dec8d6f1
1 changed files with 2 additions and 2 deletions

View 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)