Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4582d7d9
Commit
4582d7d9
authored
Aug 25, 2006
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A new test here relied on preserving invisible trailing
whitespace in expected output. Stop that.
parent
fae8f6a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_tokenize.py
Lib/test/test_tokenize.py
+3
-2
No files found.
Lib/test/test_tokenize.py
View file @
4582d7d9
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment