From 0eac13052c498e21cbb60ed321e5a9ea10d07b35 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 20 Mar 2015 03:06:12 +0100 Subject: Issue #23646: Fix test_threading on Windows --- Modules/timemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 204626e..0c44d12 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -1433,7 +1433,7 @@ floatsleep(double secs) 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; } -- cgit v0.12