summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_repl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_repl.py b/Lib/test/test_repl.py
index 1caf09c..0e73fb6 100644
--- a/Lib/test/test_repl.py
+++ b/Lib/test/test_repl.py
@@ -7,7 +7,7 @@ import unittest
from textwrap import dedent
from test import support
from test.support import cpython_only, has_subprocess_support, SuppressCrashReport
-from test.support.script_helper import kill_python, assert_python_ok
+from test.support.script_helper import assert_python_failure, kill_python, assert_python_ok
from test.support.import_helper import import_module
@@ -195,8 +195,8 @@ class TestInteractiveInterpreter(unittest.TestCase):
expected = "(30, None, [\'def foo(x):\\n\', \' return x + 1\\n\', \'\\n\'], \'<stdin>\')"
self.assertIn(expected, output, expected)
- def test_asyncio_repl_is_ok(self):
- assert_python_ok("-m", "asyncio")
+ def test_asyncio_repl_no_tty_fails(self):
+ assert assert_python_failure("-m", "asyncio")
class TestInteractiveModeSyntaxErrors(unittest.TestCase):