]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 12 Sep 2020 05:51:52 +0000 (01:51 -0400)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 05:51:52 +0000 (01:51 -0400)
The problems occured with a repository build on machine
with freshly updated Windows 10 Pro.

PC/_testconsole.c

index f6fcfcf1964b8ada0514e1ecce153855acd161f5..b62f21c339aa410b4e3233028404905307e26ef8 100644 (file)
@@ -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;
     }