Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_dumb_terminal_exits_cleanly
1 parent 7abbf51 commit 15f92e6Copy full SHA for 15f92e6
1 file changed
Lib/test/test_pyrepl/test_pyrepl.py
@@ -1069,6 +1069,9 @@ def test_bracketed_paste_single_line(self):
1069
class TestDumbTerminal(ReplTestCase):
1070
def test_dumb_terminal_exits_cleanly(self):
1071
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)
1075
env.update({"TERM": "dumb"})
1076
output, exit_code = self.run_repl("exit()\n", env=env)
1077
self.assertEqual(exit_code, 0)
0 commit comments