From 67de17bbec64fcc1fba57ea73426f5bcd00466e9 Mon Sep 17 00:00:00 2001 From: richardsheridan Date: Sun, 8 Oct 2023 19:31:47 -0400 Subject: [PATCH] adjust coverage pragma --- trio/_tests/test_threads.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trio/_tests/test_threads.py b/trio/_tests/test_threads.py index fb1682984b..e2976bbca3 100644 --- a/trio/_tests/test_threads.py +++ b/trio/_tests/test_threads.py @@ -879,8 +879,7 @@ def sync_check(): try: from_thread_run_sync(bool) except _core.Cancelled: - # 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) @@ -904,7 +903,7 @@ def async_check(): try: assert from_thread_run(no_checkpoint) except _core.Cancelled: - queue.put(True) + queue.put(True) # pragma: no cover, sync functions don't raise Cancelled else: queue.put(False)