Skip to content

Commit 2de8a8b

Browse files
[3.14] pythongh-133639: Fix test_auto_indent_default() doesn't run input_code (pythonGH-133640) (python#133646)
1 parent d35c0e4 commit 2de8a8b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 5 additions & 0 deletions
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
Lines changed: 2 additions & 0 deletions
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)