Kaydet (Commit) 0eac1305 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #23646: Fix test_threading on Windows

üst 580ef134
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment