diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-07-13 16:24:52 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-13 16:24:52 (GMT) |
| commit | f0c29a2d9f1df101efed8cda643bfff732c4e36b (patch) | |
| tree | d31c98eb85616c2de7e9a0655e1e6ae43c341947 /Lib/test/test_repl.py | |
| parent | 14c5bffcc552fec1276f078dd8d20688d4e71c78 (diff) | |
| download | cpython-f0c29a2d9f1df101efed8cda643bfff732c4e36b.zip cpython-f0c29a2d9f1df101efed8cda643bfff732c4e36b.tar.gz cpython-f0c29a2d9f1df101efed8cda643bfff732c4e36b.tar.bz2 | |
[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 a1834742936a3a2164c25c14ecf4ae6a95288ca3)
Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.com>
Diffstat (limited to 'Lib/test/test_repl.py')
| -rw-r--r-- | Lib/test/test_repl.py | 6 |
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): |
