From a09c2b2ba643d9e0bf8b35fb5a163b75349a1846 Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Mon, 17 Mar 2025 13:56:21 -0400 Subject: Fix test_pyrepl.TestDumbTerminal if PYTHON_BASIC_REPL set. (#131332) 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 3540d2a..a6a6616 100644 --- a/Lib/test/test_pyrepl/test_pyrepl.py +++ b/Lib/test/test_pyrepl/test_pyrepl.py @@ -1059,6 +1059,7 @@ class TestPasteEvent(TestCase): 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) -- cgit v0.12