[Python-checkins] r51619 - python/trunk/Lib/test/test_tokenize.py

tim.peters python-checkins at python.org
Sat Aug 26 00:26:21 CEST 2006


Author: tim.peters
Date: Sat Aug 26 00:26:21 2006
New Revision: 51619

Modified:
   python/trunk/Lib/test/test_tokenize.py
Log:
A new test here relied on preserving invisible trailing
whitespace in expected output.  Stop that.


Modified: python/trunk/Lib/test/test_tokenize.py
==============================================================================
--- python/trunk/Lib/test/test_tokenize.py	(original)
+++ python/trunk/Lib/test/test_tokenize.py	Sat Aug 26 00:26:21 2006
@@ -49,11 +49,12 @@
 
 Some people use different formatting conventions, which makes
 untokenize a little trickier.  Note that this test involves trailing
-whitespace after the colon.  You can't see it, but it's there!
+whitespace after the colon.  Note that we use hex escapes to make the
+two trailing blanks apparent in the expected output.
 
 >>> roundtrip("if   x  ==  1  :  \\n"
 ...           "  print x\\n")
-if   x  ==  1  :
+if   x  ==  1  :\x20\x20
   print x
 
 Comments need to go in the right place.


More information about the Python-checkins mailing list