From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 8 May 2025 08:47:38 +0000 (+0200) Subject: [3.13] gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (GH-13364... X-Git-Tag: v3.13.4~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0dd4f0c56877bf0d76ab073ef6e45850698d725;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (GH-133640) (#133647) --- diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index e982e0bdd66e..5672fe1ce7ba 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -443,6 +443,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 diff --git a/Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst b/Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst new file mode 100644 index 000000000000..68826cd95fa2 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst @@ -0,0 +1,2 @@ +Fix ``TestPyReplAutoindent.test_auto_indent_default()`` doesn't run +``input_code``.