Skip to content

Commit

Permalink
Update "pragma: no cover" comment
Browse files Browse the repository at this point in the history
Co-authored-by: Nekokatt <[email protected]>
  • Loading branch information
davfsa and Nekokatt authored Oct 7, 2020
1 parent eaaca65 commit 46feb85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hikari/internal/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ async def all_of(

gatherer.cancel()
try:
await gatherer # pragma: no cover - I tried everything to make this work with coverage, but no luck :(
# coverage.py will complain that this is not fully covered, as the
# "except" block will always be hit. This is intentional.
await gatherer # pragma: no cover
except asyncio.CancelledError:
pass

0 comments on commit 46feb85

Please sign in to comment.