Skip to content

Commit a09c2b2

Browse files
authored
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.
1 parent fd545d7 commit a09c2b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ def test_bracketed_paste_single_line(self):
10591059
class TestDumbTerminal(ReplTestCase):
10601060
def test_dumb_terminal_exits_cleanly(self):
10611061
env = os.environ.copy()
1062+
env.pop('PYTHON_BASIC_REPL', None)
10621063
env.update({"TERM": "dumb"})
10631064
output, exit_code = self.run_repl("exit()\n", env=env)
10641065
self.assertEqual(exit_code, 0)

0 commit comments

Comments
 (0)