Skip to content

Commit

Permalink
adjust coverage pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsheridan committed Oct 8, 2023
1 parent 0e18c93 commit 67de17b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions trio/_tests/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,7 @@ def sync_check():
try:
from_thread_run_sync(bool)
except _core.Cancelled:

Check warning on line 881 in trio/_tests/test_threads.py

View check run for this annotation

Codecov / codecov/patch

trio/_tests/test_threads.py#L881

Added line #L881 was not covered by tests
# pragma: no cover, sync functions don't raise Cancelled
queue.put(True)
queue.put(True) # pragma: no cover, sync functions don't raise Cancelled
else:
queue.put(False)

Expand All @@ -904,7 +903,7 @@ def async_check():
try:
assert from_thread_run(no_checkpoint)
except _core.Cancelled:

Check warning on line 905 in trio/_tests/test_threads.py

View check run for this annotation

Codecov / codecov/patch

trio/_tests/test_threads.py#L905

Added line #L905 was not covered by tests
queue.put(True)
queue.put(True) # pragma: no cover, sync functions don't raise Cancelled
else:
queue.put(False)

Expand Down

0 comments on commit 67de17b

Please sign in to comment.