Skip to content

Commit

Permalink
chore: fix windows compatibility
Browse files Browse the repository at this point in the history
The `SIGINT` signal is _not_ supported on Windows, so it is replaced
with the cross-platform `process.terminate` method.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Dec 30, 2024
1 parent 86110ce commit 6c56073
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/v3/test_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import logging
import re
import signal
import subprocess
import sys
import time
Expand Down Expand Up @@ -90,7 +89,7 @@ def redirect() -> NoReturn:
try:
yield url
finally:
process.send_signal(signal.SIGINT)
process.terminate()


if __name__ == "__main__":
Expand Down

0 comments on commit 6c56073

Please sign in to comment.