Fix `Context.result()` call to be in runtime scope

multihomed
Tyler Goodlet 2023-10-23 17:48:34 -04:00
parent f4e63465de
commit b77d123edd
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ def test_context_spawns_aio_task_that_errors(
await trio.sleep_forever()
return await ctx.result()
return await ctx.result()
if parent_cancels:
# bc the parent made the cancel request,