mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Issue #23646: Fix test_threading on Windows
This commit is contained in:
parent
580ef1345a
commit
0eac13052c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue