Skip to content

Commit 5e87b7a

Browse files
committed
Use old taskkill flags
1 parent 4313b90 commit 5e87b7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

choreographer/utils/_kill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def kill(process: subprocess.Popen[bytes]) -> None:
1212
if platform.system() == "Windows":
1313
subprocess.call( # noqa: S603, false positive, input fine
14-
["taskkill", "/IM", "/F", "/T", "/PID", str(process.pid)], # noqa: S607 windows full path...
14+
["taskkill", "/F", "/T", "/PID", str(process.pid)], # noqa: S607 windows full path...
1515
stderr=subprocess.DEVNULL,
1616
stdout=subprocess.DEVNULL,
1717
)

tests/test_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def test_watchdog(headless):
7777
if platform.system() == "Windows":
7878
# Blocking process here because it ensures the kill will occur rn
7979
subprocess.call( # noqa: S603, ASYNC221 sanitize input, blocking process
80-
["taskkill", "/IM", "/F", "/T", "/PID", str(browser.subprocess.pid)], # noqa: S607
80+
["taskkill", "/F", "/T", "/PID", str(browser.subprocess.pid)], # noqa: S607
8181
stderr=subprocess.DEVNULL,
8282
stdout=subprocess.DEVNULL,
8383
)

0 commit comments

Comments
 (0)