add coverage condition annotation (#1858)

This commit is contained in:
Ju4tCode
2023-03-29 11:57:33 +08:00
committed by GitHub
parent ae08568daf
commit 1213e89bf5
6 changed files with 39 additions and 8 deletions

View File

@ -27,7 +27,7 @@ HANDLED_SIGNALS = (
signal.SIGINT, # Unix signal 2. Sent by Ctrl+C.
signal.SIGTERM, # Unix signal 15. Sent by `kill <pid>`.
)
if WINDOWS:
if WINDOWS: # pragma: py-win32
HANDLED_SIGNALS += (signal.SIGBREAK,) # Windows signal 21. Sent by Ctrl+Break.