[New-bugs-announce] [issue40913] time.sleep ignores errors on Windows

Steve Dower report at bugs.python.org
Mon Jun 8 14:40:16 EDT 2020

New submission from Steve Dower <steve.dower at python.org>:

In time.sleep on Windows, if the WaitForSingleObject call fails, the call returns success. It essentially looks like the timeout was 0.

Errors should be highly unlikely, as the event object is leaked (see issue40912), but if they _do_ occur, we should raise them.

components: Windows
messages: 371037
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: time.sleep ignores errors on Windows
type: behavior
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list