Skip to content

Commit 49699d6

Browse files
authored
Merge branch 'main' into patch-1
2 parents a274b91 + 06c7794 commit 49699d6

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)