Skip to content

Commit

Permalink
Fixes #219 (#221)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
  • Loading branch information
kriek and asvetlov committed Jan 11, 2022
1 parent 41420cf commit 775da95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ Changelog
- Added `flaky <https://pypi.org/project/flaky/>`_ to test dependencies
- Added ``unused_udp_port`` and ``unused_udp_port_factory`` fixtures (similar to ``unused_tcp_port`` and ``unused_tcp_port_factory`` counterparts. `#99 <https://github.com/pytest-dev/pytest-asyncio/issues/99>`_
- Added the plugin modes: *strict*, *auto*, and *legacy*. See `documentation <https://github.com/pytest-dev/pytest-asyncio#modes>`_ for details. `#125 <https://github.com/pytest-dev/pytest-asyncio/issues/125>`_
- Correctly process ``LeyboardInterrupt`` during async fixture setup phase `#219 <https://github.com/pytest-dev/pytest-asyncio/issues/219>`_

0.16.0 (2021-10-16)
~~~~~~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ async def async_finalizer():

loop.run_until_complete(async_finalizer())

result = loop.run_until_complete(setup())
request.addfinalizer(finalizer)
return loop.run_until_complete(setup())
return result

fixturedef.func = wrapper
elif inspect.iscoroutinefunction(func):
Expand Down

0 comments on commit 775da95

Please sign in to comment.