GH-130328: Speedup pasting in legacy console on Windows (gh-133728)

This commit is contained in:
Chris Eibl 2025-05-25 15:17:43 +02:00 committed by GitHub
parent 2fd09b0110
commit 91b48868a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 12 deletions

View file

@ -35,6 +35,7 @@ class WindowsConsoleTests(TestCase):
def console(self, events, **kwargs) -> Console:
console = WindowsConsole()
console.get_event = MagicMock(side_effect=events)
console.getpending = MagicMock(return_value=Event("key", ""))
console.wait = MagicMock()
console._scroll = MagicMock()
console._hide_cursor = MagicMock()