mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.14] gh-133639: Fix test_auto_indent_default()
doesn't run input_code
(GH-133640) (#133646)
This commit is contained in:
parent
d35c0e48da
commit
2de8a8b7e9
2 changed files with 7 additions and 0 deletions
|
@ -452,6 +452,11 @@ class TestPyReplAutoindent(TestCase):
|
||||||
)
|
)
|
||||||
# fmt: on
|
# 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):
|
def test_auto_indent_continuation(self):
|
||||||
# auto indenting according to previous user indentation
|
# auto indenting according to previous user indentation
|
||||||
# fmt: off
|
# fmt: off
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Fix ``TestPyReplAutoindent.test_auto_indent_default()`` doesn't run
|
||||||
|
``input_code``.
|
Loading…
Add table
Add a link
Reference in a new issue