summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-20 02:06:12 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-20 02:06:12 (GMT)
commit0eac13052c498e21cbb60ed321e5a9ea10d07b35 (patch)
treefdd372ff6e3731053b29b7a7f002b3c4df3910e0 /Modules
parent580ef1345a4f3ea027b0fafca2958dc5cf47cdd7 (diff)
downloadcpython-0eac13052c498e21cbb60ed321e5a9ea10d07b35.zip
cpython-0eac13052c498e21cbb60ed321e5a9ea10d07b35.tar.gz
cpython-0eac13052c498e21cbb60ed321e5a9ea10d07b35.tar.bz2
Issue #23646: Fix test_threading on Windows
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
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;
}