[Python-checkins] cpython: Issue #23646: Fix test_threading on Windows

victor.stinner python-checkins at python.org
Fri Mar 20 03:06:21 CET 2015


https://hg.python.org/cpython/rev/1291649f38df
changeset:   95083:1291649f38df
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Mar 20 03:06:12 2015 +0100
summary:
  Issue #23646: Fix test_threading on Windows

files:
  Modules/timemodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/timemodule.c b/Modules/timemodule.c
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1433,7 +1433,7 @@
         ul_millis = (unsigned long)millisecs;
         if (ul_millis == 0 || !_PyOS_IsMainThread()) {
             Py_BEGIN_ALLOW_THREADS
-            Sleep(0);
+            Sleep(ul_millis);
             Py_END_ALLOW_THREADS
             break;
         }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list