summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-05-26 14:46:22 (GMT)
committerGitHub <noreply@github.com>2023-05-26 14:46:22 (GMT)
commit3fdb55c48291a459fb1e33edb5140ec0383222df (patch)
tree4c55319f16464b4fde991419d6f51583c4e8628f /Lib/idlelib
parent2cb445635e99d4401949cabebd373288cfdd0138 (diff)
downloadcpython-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.py4
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):