Skip to content

Commit 48f5324

Browse files
authored
Fix flakey test_aiohttp_request_ctx_manager_close_sess_on_error test (#10977)
1 parent 9c6da05 commit 48f5324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_client_functional.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,6 +3408,9 @@ async def handler(request: web.Request) -> NoReturn:
34083408
pass
34093409

34103410
assert cm._session.closed
3411+
# Allow event loop to process transport cleanup
3412+
# on Python < 3.11
3413+
await asyncio.sleep(0)
34113414

34123415

34133416
async def test_aiohttp_request_ctx_manager_not_found() -> None:

0 commit comments

Comments
 (0)