mirror of
https://github.com/python/cpython.git
synced 2025-10-22 17:33:55 +00:00
speedup test_pyrepl (#132688)
speedup test_unix_console.py and test_windows_console.py
This commit is contained in:
parent
c9a855a9e0
commit
815061cbab
2 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ def unix_console(events, **kwargs):
|
|||
height = kwargs.get("height", 25)
|
||||
width = kwargs.get("width", 80)
|
||||
console.getheightwidth = MagicMock(side_effect=lambda: (height, width))
|
||||
console.wait = MagicMock()
|
||||
|
||||
console.prepare()
|
||||
for key, val in kwargs.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue