Skip to content

Commit 943cde7

Browse files
author
g97iulio1609
committed
fix: remove unnecessary pragma no cover from cancel_scope lines
The strict-no-cover check confirms these lines are covered across all Python versions in CI.
1 parent 50416a1 commit 943cde7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/client/test_list_changed_callbacks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def run_server():
7070
with anyio.fail_after(2):
7171
await callback_called.wait()
7272

73-
tg.cancel_scope.cancel() # pragma: no cover
73+
tg.cancel_scope.cancel()
7474

7575

7676
async def test_prompt_list_changed_callback():
@@ -123,7 +123,7 @@ async def run_server():
123123
with anyio.fail_after(2):
124124
await callback_called.wait()
125125

126-
tg.cancel_scope.cancel() # pragma: no cover
126+
tg.cancel_scope.cancel()
127127

128128

129129
async def test_resource_list_changed_callback():
@@ -176,7 +176,7 @@ async def run_server():
176176
with anyio.fail_after(2):
177177
await callback_called.wait()
178178

179-
tg.cancel_scope.cancel() # pragma: no cover
179+
tg.cancel_scope.cancel()
180180

181181

182182
async def test_list_changed_default_no_error():
@@ -228,7 +228,7 @@ async def run_server():
228228
# Give the session a moment to process
229229
await anyio.sleep(0.1)
230230

231-
tg.cancel_scope.cancel() # pragma: no cover
231+
tg.cancel_scope.cancel()
232232

233233

234234
async def test_callback_exception_does_not_crash_session():
@@ -288,4 +288,4 @@ async def run_server():
288288
# Session should still be alive — verify by waiting for processing
289289
await anyio.sleep(0.1)
290290

291-
tg.cancel_scope.cancel() # pragma: no cover
291+
tg.cancel_scope.cancel()

0 commit comments

Comments
 (0)