gh-133639: Fix test_auto_indent_default() doesn't run input_code (#133640)

This commit is contained in:
Tan Long 2025-05-08 16:24:19 +08:00 committed by GitHub
parent afed5f8835
commit 4617d68d73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -452,6 +452,11 @@ class TestPyReplAutoindent(TestCase):
)
# fmt: on
events = code_to_events(input_code)
reader = self.prepare_reader(events)
output = multiline_input(reader)
self.assertEqual(output, output_code)
def test_auto_indent_continuation(self):
# auto indenting according to previous user indentation
# fmt: off