@@ -124,7 +124,8 @@ async def make_request(client_session: ClientSession):
124124 )
125125
126126 # Give cancellation time to process
127- with anyio .fail_after (1 ):
127+ # TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
128+ with anyio .fail_after (1 ): # pragma: no cover
128129 await ev_cancelled .wait ()
129130
130131
@@ -176,7 +177,8 @@ async def make_request(client_session: ClientSession):
176177 tg .start_soon (mock_server )
177178 tg .start_soon (make_request , client_session )
178179
179- with anyio .fail_after (2 ):
180+ # TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
181+ with anyio .fail_after (2 ): # pragma: no cover
180182 await ev_response_received .wait ()
181183
182184 assert len (result_holder ) == 1
@@ -232,7 +234,8 @@ async def make_request(client_session: ClientSession):
232234 tg .start_soon (mock_server )
233235 tg .start_soon (make_request , client_session )
234236
235- with anyio .fail_after (2 ):
237+ # TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
238+ with anyio .fail_after (2 ): # pragma: no cover
236239 await ev_error_received .wait ()
237240
238241 assert len (error_holder ) == 1
@@ -287,7 +290,8 @@ async def make_request(client_session: ClientSession):
287290 tg .start_soon (mock_server )
288291 tg .start_soon (make_request , client_session )
289292
290- with anyio .fail_after (2 ):
293+ # TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
294+ with anyio .fail_after (2 ): # pragma: no cover
291295 await ev_timeout .wait ()
292296
293297
@@ -333,7 +337,8 @@ async def mock_server():
333337 tg .start_soon (make_request , client_session )
334338 tg .start_soon (mock_server )
335339
336- with anyio .fail_after (1 ):
340+ # TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
341+ with anyio .fail_after (1 ): # pragma: no cover
337342 await ev_closed .wait ()
338- with anyio .fail_after (1 ):
343+ with anyio .fail_after (1 ): # pragma: no cover
339344 await ev_response .wait ()
0 commit comments