diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2023-05-24 09:59:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 09:59:18 (GMT) |
commit | c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a (patch) | |
tree | a57961289b87372b19a3a538bee40264646d1478 /Lib/idlelib | |
parent | c45701e9ef004a523ebb28f3be902b3cf2cf7a9b (diff) | |
download | cpython-c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a.zip cpython-c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a.tar.gz cpython-c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a.tar.bz2 |
gh-104825: Remove implicit newline in the line attribute in tokens emitted in the tokenize module (#104846)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/idle_test/test_editor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_editor.py b/Lib/idlelib/idle_test/test_editor.py index 9296a6d..ba59c40 100644 --- a/Lib/idlelib/idle_test/test_editor.py +++ b/Lib/idlelib/idle_test/test_editor.py @@ -201,8 +201,8 @@ class IndentSearcherTest(unittest.TestCase): test_info = (# text, (block, indent)) ("", (None, None)), ("[1,", (None, None)), # TokenError - ("if 1:\n", ('if 1:\n', None)), - ("if 1:\n 2\n 3\n", ('if 1:\n', ' 2\n')), + ("if 1:\n", ('if 1:', None)), + ("if 1:\n 2\n 3\n", ('if 1:', ' 2')), ) for code, expected_pair in test_info: with self.subTest(code=code): |