]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
A new test here relied on preserving invisible trailing
authorTim Peters <tim.peters@gmail.com>
Fri, 25 Aug 2006 22:26:21 +0000 (22:26 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 25 Aug 2006 22:26:21 +0000 (22:26 +0000)
whitespace in expected output.  Stop that.

Lib/test/test_tokenize.py

index 27de46ffac21c8d192d3e668c3fb6a9f72d89a21..3fa792746ee8369cc460b5b924bdeb06143d234e 100644 (file)
@@ -49,11 +49,12 @@ if x == 1:
 
 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.