diff options
Diffstat (limited to 'Lib/test/test_repl.py')
| -rw-r--r-- | Lib/test/test_repl.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_repl.py b/Lib/test/test_repl.py index cd8ef0f..7a7285a 100644 --- a/Lib/test/test_repl.py +++ b/Lib/test/test_repl.py @@ -242,6 +242,7 @@ class TestInteractiveInterpreter(unittest.TestCase): def test_asyncio_repl_is_ok(self): m, s = pty.openpty() cmd = [sys.executable, "-I", "-m", "asyncio"] + env = os.environ.copy() proc = subprocess.Popen( cmd, stdin=s, @@ -249,7 +250,7 @@ class TestInteractiveInterpreter(unittest.TestCase): stderr=s, text=True, close_fds=True, - env=os.environ, + env=env, ) os.close(s) os.write(m, b"await asyncio.sleep(0)\n") @@ -270,7 +271,7 @@ class TestInteractiveInterpreter(unittest.TestCase): proc.kill() exit_code = proc.wait() - self.assertEqual(exit_code, 0) + self.assertEqual(exit_code, 0, "".join(output)) class TestInteractiveModeSyntaxErrors(unittest.TestCase): |
