diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2023-05-26 14:46:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 14:46:22 (GMT) |
commit | 3fdb55c48291a459fb1e33edb5140ec0383222df (patch) | |
tree | 4c55319f16464b4fde991419d6f51583c4e8628f /Lib/idlelib | |
parent | 2cb445635e99d4401949cabebd373288cfdd0138 (diff) | |
download | cpython-3fdb55c48291a459fb1e33edb5140ec0383222df.zip cpython-3fdb55c48291a459fb1e33edb5140ec0383222df.tar.gz cpython-3fdb55c48291a459fb1e33edb5140ec0383222df.tar.bz2 |
gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (#104975)
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 ba59c40..9296a6d 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:', None)), - ("if 1:\n 2\n 3\n", ('if 1:', ' 2')), + ("if 1:\n", ('if 1:\n', None)), + ("if 1:\n 2\n 3\n", ('if 1:\n', ' 2\n')), ) for code, expected_pair in test_info: with self.subTest(code=code): |