]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-133639: Fix `test_auto_indent_default()` doesn't run `input_code` (GH-13364...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 May 2025 08:47:38 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 08:47:38 +0000 (08:47 +0000)
Lib/test/test_pyrepl/test_pyrepl.py
Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst [new file with mode: 0644]

index e982e0bdd66e4527358b9e2a6d5d757ec6994774..5672fe1ce7bacd5f20ebe0209fc3f24cd8f8e876 100644 (file)
@@ -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 (file)
index 0000000..68826cd
--- /dev/null
@@ -0,0 +1,2 @@
+Fix ``TestPyReplAutoindent.test_auto_indent_default()`` doesn't run
+``input_code``.