summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_unix_console.py
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2024-06-03 15:32:40 (GMT)
committerGitHub <noreply@github.com>2024-06-03 15:32:40 (GMT)
commit6acb32fac3511c1d5500cac66f1d6397dcdab835 (patch)
tree1005cbc572340df38f0c911125a5d6fe0907f569 /Lib/test/test_pyrepl/test_unix_console.py
parent42a34ddb0b63e638905b01e17a7254623a0de427 (diff)
downloadcpython-6acb32fac3511c1d5500cac66f1d6397dcdab835.zip
cpython-6acb32fac3511c1d5500cac66f1d6397dcdab835.tar.gz
cpython-6acb32fac3511c1d5500cac66f1d6397dcdab835.tar.bz2
Use Cirrus M1 macOS runners for CI (GH-119979)
Co-authored-by: Ee Durbin <ee@python.org>
Diffstat (limited to 'Lib/test/test_pyrepl/test_unix_console.py')
-rw-r--r--Lib/test/test_pyrepl/test_unix_console.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pyrepl/test_unix_console.py b/Lib/test/test_pyrepl/test_unix_console.py
index d0b98f1..e3bbabc 100644
--- a/Lib/test/test_pyrepl/test_unix_console.py
+++ b/Lib/test/test_pyrepl/test_unix_console.py
@@ -6,12 +6,14 @@ from unittest import TestCase
from unittest.mock import MagicMock, call, patch, ANY
from .support import handle_all_events, code_to_events
+
try:
from _pyrepl.console import Event
from _pyrepl.unix_console import UnixConsole
except ImportError:
pass
+
def unix_console(events, **kwargs):
console = UnixConsole()
console.get_event = MagicMock(side_effect=events)
@@ -138,7 +140,6 @@ class TestConsole(TestCase):
_os_write.assert_any_call(ANY, b"4")
con.restore()
-
def test_cursor_left(self, _os_write):
code = "1"
events = itertools.chain(