Skip to content

Commit

Permalink
nocover
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusSintonen committed Jun 10, 2024
1 parent eb8ed67 commit c6cb73c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpcore/_synchronization.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ async def shield(shielded: Callable[[], Coroutine[Any, Any, None]]) -> None:
if current_async_backend() == "trio":
with trio.CancelScope(shield=True):
await shielded()
elif sys.version_info < (3, 11):
elif sys.version_info < (3, 11): # pragma: nocover
with anyio_shield(shield=True):
await shielded()
else:
await AsyncShieldCancellation._asyncio_shield(shielded)
await AsyncShieldCancellation._asyncio_shield(shielded) # pragma: nocover

@staticmethod
async def _asyncio_shield(
Expand Down

0 comments on commit c6cb73c

Please sign in to comment.