]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] 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:50:57 +0000 (10:50 +0200)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 08:50:57 +0000 (08:50 +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 93029ab6e080ba0a4eb0cea092f00b0a54a4037e..fc8114891d12dd978609a85fd973712601ef8a4e 100644 (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
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``.