[Python-3000-checkins] r56740 - python/branches/py3k-struni/Lib/test/test_tokenize.py

guido.van.rossum python-3000-checkins at python.org
Sat Aug 4 19:55:44 CEST 2007


Author: guido.van.rossum
Date: Sat Aug  4 19:55:43 2007
New Revision: 56740

Modified:
   python/branches/py3k-struni/Lib/test/test_tokenize.py
Log:
Make test_tokenize really pass -- don't add extra output.


Modified: python/branches/py3k-struni/Lib/test/test_tokenize.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_tokenize.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_tokenize.py	Sat Aug  4 19:55:43 2007
@@ -98,7 +98,7 @@
 # and tokenized again from the latter.  The test fails if the second
 # tokenization doesn't match the first.
 def test_roundtrip(f):
-    ## print 'Testing:', f
+    ## print('Testing:', f)
     # Get the encoding first
     fobj = open(f, encoding="latin-1")
     first2lines = fobj.readline() + fobj.readline()
@@ -106,7 +106,7 @@
     m = re.search(r"coding:\s*(\S+)", first2lines)
     if m:
         encoding = m.group(1)
-        print("    coding:", encoding)
+        ## print("    coding:", encoding)
     else:
         encoding = "utf-8"
     fobj = open(f, encoding=encoding)


More information about the Python-3000-checkins mailing list