From 28fbf501fce33270fe6e706a4272bbfda774bff2 Mon Sep 17 00:00:00 2001 From: Tan Long Date: Thu, 8 May 2025 14:56:49 +0800 Subject: [PATCH 1/2] `TestPyReplAutoindent.test_auto_indent_default()` misses `self.assertEqual()` --- Lib/test/test_pyrepl/test_pyrepl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index 93029ab6e080ba..fc8114891d12dd 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -452,6 +452,11 @@ def test_auto_indent_default(self): ) # 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 From c8ca2eb032e4540d7407ce16412d699d88e5638a Mon Sep 17 00:00:00 2001 From: Tan Long Date: Thu, 8 May 2025 15:06:06 +0800 Subject: [PATCH 2/2] Add news entry --- .../next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-05-08-15-06-01.gh-issue-133639.50-kbV.rst 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 00000000000000..68826cd95fa2b0 --- /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``.