mirror of
https://github.com/python/cpython.git
synced 2025-09-25 09:50:37 +00:00
[3.13] gh-121711: Set -m asyncio
return_code to 1 for ENOTTY (GH-121714) (GH-121718)
Set return_code to 1 for ENOTTY
(cherry picked from commit a183474293
)
Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.com>
This commit is contained in:
parent
14c5bffcc5
commit
f0c29a2d9f
2 changed files with 5 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue