Skip to content

Commit 15f92e6

Browse files
authored
[3.13] pythongh-137568: Ignore startup file in test_dumb_terminal_exits_cleanly (pythonGH-140295) (pythonGH-140632)
(cherry picked from commit 06c7794)
1 parent 7abbf51 commit 15f92e6

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
@@ -1069,6 +1069,9 @@ def test_bracketed_paste_single_line(self):
10691069
class TestDumbTerminal(ReplTestCase):
10701070
def test_dumb_terminal_exits_cleanly(self):
10711071
env = os.environ.copy()
1072+
# Ignore PYTHONSTARTUP to not pollute the output
1073+
# with an unrelated traceback. See GH-137568.
1074+
env.pop('PYTHONSTARTUP', None)
10721075
env.update({"TERM": "dumb"})
10731076
output, exit_code = self.run_repl("exit()\n", env=env)
10741077
self.assertEqual(exit_code, 0)

0 commit comments

Comments
 (0)