gh-118817: Fix asyncio REPL on Windows (#118819)

This commit is contained in:
Kirill Podoprigora 2024-05-09 18:20:46 +03:00 committed by GitHub
parent 35b5eaa176
commit c3643a1214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import subprocess
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
from test.support.script_helper import kill_python, assert_python_ok
from test.support.import_helper import import_module
@ -195,6 +195,9 @@ 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")
class TestInteractiveModeSyntaxErrors(unittest.TestCase):