summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-09-18 04:42:41 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-09-18 04:42:41 (GMT)
commitf2dec8d6f1f8816959503e45f4a653f56e6715c6 (patch)
tree4209e7bb820afc3af8a8de60fb9f73e24b5ce2ee /Lib
parent35aa08376ba62ba02019bf81c0d84ea2c952a9df (diff)
downloadcpython-f2dec8d6f1f8816959503e45f4a653f56e6715c6.zip
cpython-f2dec8d6f1f8816959503e45f4a653f56e6715c6.tar.gz
cpython-f2dec8d6f1f8816959503e45f4a653f56e6715c6.tar.bz2
In Python3000, Tkinter was renamed to tkinter. And print is now function.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tcl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index 19c75af..f2a7768 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)