Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0eac130

Browse files
committed
Issue #23646: Fix test_threading on Windows
1 parent 580ef13 commit 0eac130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/timemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ floatsleep(double secs)
14331433
ul_millis = (unsigned long)millisecs;
14341434
if (ul_millis == 0 || !_PyOS_IsMainThread()) {
14351435
Py_BEGIN_ALLOW_THREADS
1436-
Sleep(0);
1436+
Sleep(ul_millis);
14371437
Py_END_ALLOW_THREADS
14381438
break;
14391439
}

0 commit comments

Comments
 (0)