mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-137568: Ignore startup file in test_dumb_terminal_exits_cleanly (GH-140295)
This commit is contained in:
parent
e34a5e3304
commit
06c779474c
1 changed files with 3 additions and 0 deletions
|
|
@ -1406,6 +1406,9 @@ class TestDumbTerminal(ReplTestCase):
|
|||
def test_dumb_terminal_exits_cleanly(self):
|
||||
env = os.environ.copy()
|
||||
env.pop('PYTHON_BASIC_REPL', None)
|
||||
# Ignore PYTHONSTARTUP to not pollute the output
|
||||
# with an unrelated traceback. See GH-137568.
|
||||
env.pop('PYTHONSTARTUP', None)
|
||||
env.update({"TERM": "dumb"})
|
||||
output, exit_code = self.run_repl("exit()\n", env=env)
|
||||
self.assertEqual(exit_code, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue