https://github.com/python/cpython/commit/6917fbf98f6fd7946ed92e7d6daa5a7ecb50167c
commit: 6917fbf98f6fd7946ed92e7d6daa5a7ecb50167c
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: ambv <[email protected]>
date: 2025-05-25T18:43:07Z
summary:

[3.14] GH-130328: Fix WindowsConsoleGetEventTests after gh-133728 (gh-134660) 
(gh-134666)

(cherry picked from commit 1000283694136ee0538baa6c6b2eee662ee618d4)

Co-authored-by: Chris Eibl <[email protected]>

files:
M Lib/test/test_pyrepl/test_windows_console.py

diff --git a/Lib/test/test_pyrepl/test_windows_console.py 
b/Lib/test/test_pyrepl/test_windows_console.py
index a52ae96a83ddde..f9607e02c604ff 100644
--- a/Lib/test/test_pyrepl/test_windows_console.py
+++ b/Lib/test/test_pyrepl/test_windows_console.py
@@ -386,6 +386,7 @@ def get_event(self, input_records, **kwargs) -> Console:
         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
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to