mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
gh-111201: Support pyrepl on Windows (#119559)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
13a5fdc72f
commit
0d07182821
15 changed files with 1020 additions and 49 deletions
|
@ -55,7 +55,7 @@ def prepare_reader(console: Console, **kwargs):
|
|||
return reader
|
||||
|
||||
|
||||
def prepare_console(events: Iterable[Event], **kwargs):
|
||||
def prepare_console(events: Iterable[Event], **kwargs) -> MagicMock | Console:
|
||||
console = MagicMock()
|
||||
console.get_event.side_effect = events
|
||||
console.height = 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue