Skip to content

Commit d04260b

Browse files
committed
[3.12] pythongh-104825: add omitted idlelib text fix
Order of events: Terry merged new idlelib test into main. Ms. I. made a 3.12 backport; tests passed. Pablo merged the tokenize change with idlelib test fix into main. Pablo merged a 3.12 backport without the idle test fix as the backport of the latter had not yet been been merged. Terry merged the idlelib test backport. The new test failed on at least 4 3.12 buildbots because of the tokenize change. This PR backports the now needed idlelib test fix. (cherry picked from commit c8cf9b4)
1 parent 25890eb commit d04260b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/idlelib/idle_test/test_editor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def test_searcher(self):
201201
test_info = (# text, (block, indent))
202202
("", (None, None)),
203203
("[1,", (None, None)), # TokenError
204-
("if 1:\n", ('if 1:\n', None)),
205-
("if 1:\n 2\n 3\n", ('if 1:\n', ' 2\n')),
204+
("if 1:\n", ('if 1:', None)),
205+
("if 1:\n 2\n 3\n", ('if 1:', ' 2')),
206206
)
207207
for code, expected_pair in test_info:
208208
with self.subTest(code=code):

0 commit comments

Comments
 (0)