Skip to content

Commit 6c56073

Browse files
committed
chore: fix windows compatibility
The `SIGINT` signal is _not_ supported on Windows, so it is replaced with the cross-platform `process.terminate` method. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 86110ce commit 6c56073

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/v3/test_match.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import logging
66
import re
7-
import signal
87
import subprocess
98
import sys
109
import time
@@ -90,7 +89,7 @@ def redirect() -> NoReturn:
9089
try:
9190
yield url
9291
finally:
93-
process.send_signal(signal.SIGINT)
92+
process.terminate()
9493

9594

9695
if __name__ == "__main__":

0 commit comments

Comments
 (0)