Skip to content

Commit 14b0211

Browse files
committed
Remove \n from newline
1 parent 94ccd29 commit 14b0211

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_tokenize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3198,7 +3198,7 @@ def normalize_spaces(text):
31983198

31993199
def set_source(self, content):
32003200
with open(self.filename, 'w') as fp:
3201-
fp.write(content+'\n')
3201+
fp.write(content)
32023202

32033203
def invoke_tokenize(self, *flags):
32043204
output = StringIO()
@@ -3240,7 +3240,7 @@ def test_without_flag(self):
32403240
1,0-1,1: NAME 'a'
32413241
1,2-1,3: OP '='
32423242
1,4-1,5: NUMBER '1'
3243-
1,5-1,6: NEWLINE '\\n'
3243+
1,5-1,6: NEWLINE ''
32443244
2,0-2,0: ENDMARKER ''
32453245
'''
32463246
self.check_output(source, expect)
@@ -3253,7 +3253,7 @@ def test_exact_flag(self):
32533253
1,0-1,1: NAME 'a'
32543254
1,2-1,3: EQUAL '='
32553255
1,4-1,5: NUMBER '1'
3256-
1,5-1,6: NEWLINE '\\n'
3256+
1,5-1,6: NEWLINE ''
32573257
2,0-2,0: ENDMARKER ''
32583258
'''
32593259
for flag in ['-e', '--exact']:

0 commit comments

Comments
 (0)