[Python-checkins] r84876 - python/branches/py3k/Lib/test/test_tcl.py

hirokazu.yamamoto python-checkins at python.org
Sat Sep 18 06:42:42 CEST 2010


Author: hirokazu.yamamoto
Date: Sat Sep 18 06:42:41 2010
New Revision: 84876

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

Modified:
   python/branches/py3k/Lib/test/test_tcl.py

Modified: python/branches/py3k/Lib/test/test_tcl.py
==============================================================================
--- python/branches/py3k/Lib/test/test_tcl.py	(original)
+++ python/branches/py3k/Lib/test/test_tcl.py	Sat Sep 18 06:42:41 2010
@@ -145,9 +145,9 @@
 
         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)
 


More information about the Python-checkins mailing list