Skip to content

Commit 30ee67b

Browse files
[3.14] pythongh-137568: Ignore startup file in test_dumb_terminal_exits_cleanly (pythonGH-140295) (pythonGH-140628)
pythongh-137568: Ignore startup file in `test_dumb_terminal_exits_cleanly` (pythonGH-140295) (cherry picked from commit 06c7794) Co-authored-by: Bartosz Sławecki <[email protected]>
1 parent 46a3fd2 commit 30ee67b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,9 @@ class TestDumbTerminal(ReplTestCase):
14061406
def test_dumb_terminal_exits_cleanly(self):
14071407
env = os.environ.copy()
14081408
env.pop('PYTHON_BASIC_REPL', None)
1409+
# Ignore PYTHONSTARTUP to not pollute the output
1410+
# with an unrelated traceback. See GH-137568.
1411+
env.pop('PYTHONSTARTUP', None)
14091412
env.update({"TERM": "dumb"})
14101413
output, exit_code = self.run_repl("exit()\n", env=env)
14111414
self.assertEqual(exit_code, 0)

0 commit comments

Comments
 (0)