mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix test_pyrepl.TestDumbTerminal if PYTHON_BASIC_REPL set. (#131332)
Most of the tests that care already adjust PYTHON_BASIC_REPL as needed, but this one doesn't, and it fails if the developer has the variable set.
This commit is contained in:
parent
fd545d735d
commit
a09c2b2ba6
1 changed files with 1 additions and 0 deletions
|
@ -1059,6 +1059,7 @@ class TestPasteEvent(TestCase):
|
|||
class TestDumbTerminal(ReplTestCase):
|
||||
def test_dumb_terminal_exits_cleanly(self):
|
||||
env = os.environ.copy()
|
||||
env.pop('PYTHON_BASIC_REPL', 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