diff --git a/tests/test_atexitasync.py b/tests/test_atexitasync.py index 94e2fe1..c41c73f 100644 --- a/tests/test_atexitasync.py +++ b/tests/test_atexitasync.py @@ -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" )