Skip to content

Commit be0f855

Browse files
author
Elad Namdar
committed
contextvars: fix broken test_nested_async_bind test
1 parent f8dd171 commit be0f855

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_contextvars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ async def test_nested_async_bind(self, event_loop):
5656

5757
async def coro():
5858
bind_contextvars(a=1)
59-
await event_loop.create_task(nested_coro())
60-
return merge_contextvars(None, None, {"b": 2})
59+
return await event_loop.create_task(nested_coro())
6160

6261
async def nested_coro():
6362
bind_contextvars(c=3)
63+
return merge_contextvars(None, None, {"b": 2})
6464

6565
assert {"a": 1, "b": 2, "c": 3} == await event_loop.create_task(coro())
6666

0 commit comments

Comments
 (0)