Skip to content

Commit

Permalink
Add pragma: full coverage to Process.is_alive (#2402)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jul 31, 2024
1 parent ce999aa commit b492349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/supervisors/multiprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def target(self, sockets: list[socket] | None = None) -> Any: # pragma: no cove

def is_alive(self, timeout: float = 5) -> bool:
if not self.process.is_alive():
return False
return False # pragma: full coverage

return self.ping(timeout)

Expand Down

0 comments on commit b492349

Please sign in to comment.