Skip to content

Commit

Permalink
Merge pull request #51 from hynek/master
Browse files Browse the repository at this point in the history
Fix asyncio.async/ensure_future warning
  • Loading branch information
Tinche authored May 25, 2017
2 parents e0272ab + 1dc14f8 commit dcc9aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ Changelog
- The ``forbid_global_loop`` parameter has been removed.
- Support for async and async gen fixtures has been added.
`#45 <https://github.com/pytest-dev/pytest-asyncio/pull/45>`_
- The deprecation warning regarding ``asyncio.async()`` has been fixed.
`#51 <https://github.com/pytest-dev/pytest-asyncio/pull/51>`_

0.5.0 (2016-09-07)
~~~~~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def pytest_pyfunc_call(pyfuncitem):
for arg in pyfuncitem._fixtureinfo.argnames}

event_loop.run_until_complete(
asyncio.async(pyfuncitem.obj(**testargs), loop=event_loop))
asyncio.ensure_future(
pyfuncitem.obj(**testargs), loop=event_loop))
return True


Expand Down

0 comments on commit dcc9aa9

Please sign in to comment.