]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Sep 2020 06:09:08 +0000 (23:09 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 06:09:08 +0000 (23:09 -0700)
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@udel.edu>
PC/_testconsole.c

index 23d1286ed4f49805da6325c93110af64dbe4d4b8..1823ff2cf1cc0ddf9b3eb49bb49c5866e07f6ff3 100644 (file)
@@ -64,7 +64,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;
     }