@@ -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
7676async 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
129129async 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
182182async 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
234234async 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