diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2025-03-21 14:48:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-21 14:48:10 (GMT) |
commit | 5d8e981c8477ce483374b2fe6cd309a08c956299 (patch) | |
tree | 2825ca9e4f48f1a6bb2a2363d8397cf13ed03c7a /Lib/test/test_pyrepl/test_unix_console.py | |
parent | d3f6063af18a008e316e4342492e877ee51463e2 (diff) | |
download | cpython-5d8e981c8477ce483374b2fe6cd309a08c956299.zip cpython-5d8e981c8477ce483374b2fe6cd309a08c956299.tar.gz cpython-5d8e981c8477ce483374b2fe6cd309a08c956299.tar.bz2 |
gh-131507: Clean up tests and type checking for `_pyrepl` (#131509)
Diffstat (limited to 'Lib/test/test_pyrepl/test_unix_console.py')
-rw-r--r-- | Lib/test/test_pyrepl/test_unix_console.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_pyrepl/test_unix_console.py b/Lib/test/test_pyrepl/test_unix_console.py index 15dbf48..057cdd1 100644 --- a/Lib/test/test_pyrepl/test_unix_console.py +++ b/Lib/test/test_pyrepl/test_unix_console.py @@ -7,7 +7,7 @@ from test.support import os_helper from unittest import TestCase from unittest.mock import MagicMock, call, patch, ANY -from .support import handle_all_events, code_to_events +from .support import handle_all_events, code_to_events, reader_no_colors try: from _pyrepl.console import Event @@ -252,7 +252,9 @@ class TestConsole(TestCase): # fmt: on events = itertools.chain(code_to_events(code)) - reader, console = handle_events_short_unix_console(events) + reader, console = handle_events_short_unix_console( + events, prepare_reader=reader_no_colors + ) console.height = 2 console.getheightwidth = MagicMock(lambda _: (2, 80)) |