diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2023-06-06 11:52:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 11:52:16 (GMT) |
commit | c0a6ed39343b6dc355607fbff108c515e6c103bf (patch) | |
tree | 39b12fa4a80178944cba90020076b336f4c9f1f4 /Lib | |
parent | 0202aa002e06acef9aa55ace0d939103df19cadd (diff) | |
download | cpython-c0a6ed39343b6dc355607fbff108c515e6c103bf.zip cpython-c0a6ed39343b6dc355607fbff108c515e6c103bf.tar.gz cpython-c0a6ed39343b6dc355607fbff108c515e6c103bf.tar.bz2 |
gh-105259: Ensure we don't show newline characters for trailing NEWLINE tokens (#105364)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_tokenize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index a9a2b76..5ac1709 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -1870,7 +1870,7 @@ class CTokenizeTest(TestCase): TokenInfo(type=NUMBER, string='1', start=(1, 0), end=(1, 1), line='1+1\n'), TokenInfo(type=OP, string='+', start=(1, 1), end=(1, 2), line='1+1\n'), TokenInfo(type=NUMBER, string='1', start=(1, 2), end=(1, 3), line='1+1\n'), - TokenInfo(type=NEWLINE, string='\n', start=(1, 3), end=(1, 4), line='1+1\n'), + TokenInfo(type=NEWLINE, string='', start=(1, 3), end=(1, 4), line='1+1\n'), TokenInfo(type=ENDMARKER, string='', start=(2, 0), end=(2, 0), line='') ] for encoding in ["utf-8", "latin-1", "utf-16"]: |