Skip to content

Commit 4617d68

Browse files
authored
gh-133639: Fix test_auto_indent_default() doesn't run input_code (#133640)
1 parent afed5f8 commit 4617d68

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

+5
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ def test_auto_indent_default(self):
452452
)
453453
# fmt: on
454454

455+
events = code_to_events(input_code)
456+
reader = self.prepare_reader(events)
457+
output = multiline_input(reader)
458+
self.assertEqual(output, output_code)
459+
455460
def test_auto_indent_continuation(self):
456461
# auto indenting according to previous user indentation
457462
# fmt: off
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix ``TestPyReplAutoindent.test_auto_indent_default()`` doesn't run
2+
``input_code``.

0 commit comments

Comments
 (0)