From a82de1524004b574edffe03a4c9f95ed2df52178 Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Sun, 16 Mar 2025 12:57:45 -0400 Subject: [PATCH] Fix test_pyrepl.TestDumbTerminal if PYTHON_BASIC_REPL set. Most of the tests that care already adjust PYTHON_BASIC_REPL as needed, but this one doesn't, and it fails if the developer has the variable set. --- Lib/test/test_pyrepl/test_pyrepl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py index 3540d2a5a41662..a6a66162d6b25a 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -1059,6 +1059,7 @@ def test_bracketed_paste_single_line(self): class TestDumbTerminal(ReplTestCase): def test_dumb_terminal_exits_cleanly(self): env = os.environ.copy() + env.pop('PYTHON_BASIC_REPL', None) env.update({"TERM": "dumb"}) output, exit_code = self.run_repl("exit()\n", env=env) self.assertEqual(exit_code, 0)