Fix ping TypeError when killing the process (#157794)

This commit is contained in:
Marc Mueller
2025-12-03 10:42:26 +00:00
committed by Franck Nijhof
parent a7446b3da9
commit db27aee62a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class PingDataSubProcess(PingData):
if pinger:
with suppress(TypeError, ProcessLookupError):
await pinger.kill() # type: ignore[func-returns-value]
pinger.kill()
del pinger
return None
+1 -1
View File
@@ -22,7 +22,7 @@ class MockAsyncSubprocess:
"""Fails immediately with a timeout."""
raise TimeoutError
async def kill(self) -> None:
def kill(self) -> None:
"""Raise preset exception when called."""
raise self.killsig