Skip to content

Commit 5893857

Browse files
jet-logicjet-logic
authored andcommitted
SIGTERM winci
1 parent 976e95c commit 5893857

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ jobs:
5858
# TARGET: runce
5959
# run: python tests/remove_emojis.py
6060

61-
# - name: Run tests/test_windows.py
62-
# run: python tests/test_windows.py
63-
# continue-on-error: true
61+
- name: Run tests/test_windows.py
62+
run: python tests/test_windows.py
63+
continue-on-error: true
6464

65-
# - name: Run tests/test_utils.py
66-
# run: python tests/test_utils.py
67-
# continue-on-error: true
65+
- name: Run tests/test_utils.py
66+
run: python tests/test_utils.py
67+
continue-on-error: true
6868

69-
# - name: Run tests/test_cli.py
70-
# run: python tests/test_cli.py
71-
# continue-on-error: true
69+
- name: Run tests/test_cli.py
70+
run: python tests/test_cli.py
71+
continue-on-error: true
7272

73-
- name: Run tests
74-
run: python -m pytest
73+
# - name: Run tests
74+
# run: python -m pytest

tests/test_windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def check_pid(pid: int) -> bool:
132132
def kill_pid(
133133
pid: int, sig: Optional[int] = None, process_group: Optional[bool] = None
134134
) -> bool:
135-
os.kill(pid, sig)
135+
os.kill(pid, signal.SIGTERM if sig is None else sig)
136136

137137

138138
def task_kill(pid):

0 commit comments

Comments
 (0)