We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e18c93 commit eab30c4Copy full SHA for eab30c4
trio/_tests/test_threads.py
@@ -878,9 +878,8 @@ def sync_check():
878
from_thread_run_sync(cancel_scope.cancel)
879
try:
880
from_thread_run_sync(bool)
881
- except _core.Cancelled:
882
- # pragma: no cover, sync functions don't raise Cancelled
883
- queue.put(True)
+ except _core.Cancelled: # pragma: no cover
+ queue.put(True) # sync functions don't raise Cancelled
884
else:
885
queue.put(False)
886
@@ -903,8 +902,8 @@ def async_check():
903
902
904
905
assert from_thread_run(no_checkpoint)
906
907
+ queue.put(True) # async functions raise Cancelled at checkpoints
908
909
910
0 commit comments