diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-08-25 22:26:21 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-08-25 22:26:21 (GMT) |
commit | 4582d7d905ae4299dd2ff981bfbab5980c9ddb79 (patch) | |
tree | ce52baeaeed39cf4c97af61bd4ec066899785ae8 | |
parent | fae8f6a21ac574ab6184956058473341a93cce1a (diff) | |
download | cpython-4582d7d905ae4299dd2ff981bfbab5980c9ddb79.zip cpython-4582d7d905ae4299dd2ff981bfbab5980c9ddb79.tar.gz cpython-4582d7d905ae4299dd2ff981bfbab5980c9ddb79.tar.bz2 |
A new test here relied on preserving invisible trailing
whitespace in expected output. Stop that.
-rw-r--r-- | Lib/test/test_tokenize.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index 27de46f..3fa7927 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -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. |