]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] GH-130328: Fix WindowsConsoleGetEventTests after gh-133728 (gh-134660) (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 25 May 2025 18:43:07 +0000 (20:43 +0200)
committerGitHub <noreply@github.com>
Sun, 25 May 2025 18:43:07 +0000 (18:43 +0000)
(cherry picked from commit 1000283694136ee0538baa6c6b2eee662ee618d4)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Lib/test/test_pyrepl/test_windows_console.py

index a52ae96a83ddde372d2285667d8365d6cea8d28f..f9607e02c604ff8cf764e23a6b2ee5f321b96337 100644 (file)
@@ -386,6 +386,7 @@ class WindowsConsoleGetEventTests(TestCase):
         self.console._read_input = self.mock
         self.console._WindowsConsole__vt_support = kwargs.get("vt_support",
                                                               False)
+        self.console.wait = MagicMock(return_value=True)
         event = self.console.get_event(block=False)
         return event