[Python-checkins] bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)

Miss Islington (bot) webhook-mailer at python.org
Tue Sep 15 09:53:26 EDT 2020


https://github.com/python/cpython/commit/c2577b9e0e2f8652f079b4ac473347c63f15e25c
commit: c2577b9e0e2f8652f079b4ac473347c63f15e25c
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-09-12T02:18:59-04:00
summary:

bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)

The problems occured with a repository build on machine
with freshly updated Windows 10 Pro.
(cherry picked from commit 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

files:
M PC/_testconsole.c

diff --git a/PC/_testconsole.c b/PC/_testconsole.c
index f6fcfcf1964b8..b62f21c339aa4 100644
--- a/PC/_testconsole.c
+++ b/PC/_testconsole.c
@@ -63,7 +63,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
     for (DWORD i = 0; i < size; ++i, ++p, ++prec) {
         prec->EventType = KEY_EVENT;
         prec->Event.KeyEvent.bKeyDown = TRUE;
-        prec->Event.KeyEvent.wRepeatCount = 10;
+        prec->Event.KeyEvent.wRepeatCount = 1;
         prec->Event.KeyEvent.uChar.UnicodeChar = *p;
     }
 



More information about the Python-checkins mailing list