summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-05-26 15:25:46 (GMT)
committerGitHub <noreply@github.com>2023-05-26 15:25:46 (GMT)
commit8ca29573a89f78f87380210d02f48410763f507d (patch)
tree7ed4c5022d0a6fffe34dd51912f73e7708bd28f7 /Lib/idlelib
parent01af2b0e516608c831f4c6837087479f45368d21 (diff)
downloadcpython-8ca29573a89f78f87380210d02f48410763f507d.zip
cpython-8ca29573a89f78f87380210d02f48410763f507d.tar.gz
cpython-8ca29573a89f78f87380210d02f48410763f507d.tar.bz2
[3.12] gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975) (#104982)
gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975) (cherry picked from commit 3fdb55c48291a459fb1e33edb5140ec0383222df) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
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):