Skip to content

Commit

Permalink
contextvars: fix broken test_nested_async_bind test
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Namdar committed Feb 4, 2021
1 parent 6042e36 commit e3627fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_contextvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ async def test_nested_async_bind(self, event_loop):

async def coro():
bind_contextvars(a=1)
await event_loop.create_task(nested_coro())
return merge_contextvars(None, None, {"b": 2})
return await event_loop.create_task(nested_coro())

async def nested_coro():
bind_contextvars(c=3)
return merge_contextvars(None, None, {"b": 2})

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

Expand Down

0 comments on commit e3627fd

Please sign in to comment.