Skip to content

Commit

Permalink
tests: test signal handling in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jan 30, 2024
1 parent 4d2e774 commit 80d7579
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_atexitasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
(signal.SIGINT, 5),
],
)
@pytest.mark.skipif(
sys.platform == "win32",
reason="Testing signals on Windows doesn't seem to be possible",
)
def test_atexitasync(signum, handlercount):
"""
Test signal handlers receive signals properly
"""
if signum == signal.SIGINT and sys.platform == "win32":
signum = signal.CTRL_C_EVENT

signalprinter_file = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "child_scripts", "signalprinter.py"
)
Expand Down

0 comments on commit 80d7579

Please sign in to comment.