mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-133639: Fix test_auto_indent_default()
doesn't run input_code
(#133640)
This commit is contained in:
parent
afed5f8835
commit
4617d68d73
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue