mirror of
https://github.com/python/cpython.git
synced 2025-11-24 12:20:42 +00:00
[3.14] gh-137568: Ignore startup file in test_dumb_terminal_exits_cleanly (GH-140295) (GH-140628)
gh-137568: Ignore startup file in `test_dumb_terminal_exits_cleanly` (GH-140295)
(cherry picked from commit 06c779474c)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
parent
46a3fd2da5
commit
30ee67b2e4
1 changed files with 3 additions and 0 deletions
|
|
@ -1406,6 +1406,9 @@ class TestDumbTerminal(ReplTestCase):
|
||||||
def test_dumb_terminal_exits_cleanly(self):
|
def test_dumb_terminal_exits_cleanly(self):
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env.pop('PYTHON_BASIC_REPL', None)
|
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"})
|
env.update({"TERM": "dumb"})
|
||||||
output, exit_code = self.run_repl("exit()\n", env=env)
|
output, exit_code = self.run_repl("exit()\n", env=env)
|
||||||
self.assertEqual(exit_code, 0)
|
self.assertEqual(exit_code, 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue