Skip to content

Commit adace0b

Browse files
committed
fix: move pragma: no cover to statements inside branches
Moving the pragma from the condition line (which is executed) to the body (which is not) satisfies both coverage (branch excluded) and strict-no-cover.
1 parent 814ec9e commit adace0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/shared/test_streamable_http.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,8 +1481,8 @@ def context_aware_server(basic_server_port: int) -> Generator[None, None, None]:
14811481

14821482
proc.kill()
14831483
proc.join(timeout=2)
1484-
if proc.is_alive(): # pragma: no cover
1485-
print("Context-aware server process failed to terminate")
1484+
if proc.is_alive():
1485+
print("Context-aware server process failed to terminate") # pragma: no cover
14861486

14871487

14881488
@pytest.mark.anyio

0 commit comments

Comments
 (0)