Issue #23646: Fix test_threading on Windows

This commit is contained in:
Victor Stinner 2015-03-20 03:06:12 +01:00
parent 580ef1345a
commit 0eac13052c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}