Skip to content

Commit 815061c

Browse files
authored
speedup test_pyrepl (#132688)
speedup test_unix_console.py and test_windows_console.py
1 parent c9a855a commit 815061c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def unix_console(events, **kwargs):
2323
height = kwargs.get("height", 25)
2424
width = kwargs.get("width", 80)
2525
console.getheightwidth = MagicMock(side_effect=lambda: (height, width))
26+
console.wait = MagicMock()
2627

2728
console.prepare()
2829
for key, val in kwargs.items():

Lib/test/test_pyrepl/test_windows_console.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class WindowsConsoleTests(TestCase):
3131
def console(self, events, **kwargs) -> Console:
3232
console = WindowsConsole()
3333
console.get_event = MagicMock(side_effect=events)
34+
console.wait = MagicMock()
3435
console._scroll = MagicMock()
3536
console._hide_cursor = MagicMock()
3637
console._show_cursor = MagicMock()

0 commit comments

Comments
 (0)