Skip to content

Commit 775da95

Browse files
kriekasvetlov
andauthored
Fixes #219 (#221)
Co-authored-by: Andrew Svetlov <[email protected]>
1 parent 41420cf commit 775da95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Changelog
264264
- Added `flaky <https://pypi.org/project/flaky/>`_ to test dependencies
265265
- 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>`_
266266
- 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>`_
267+
- Correctly process ``LeyboardInterrupt`` during async fixture setup phase `#219 <https://github.com/pytest-dev/pytest-asyncio/issues/219>`_
267268

268269
0.16.0 (2021-10-16)
269270
~~~~~~~~~~~~~~~~~~~

pytest_asyncio/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ async def async_finalizer():
253253

254254
loop.run_until_complete(async_finalizer())
255255

256+
result = loop.run_until_complete(setup())
256257
request.addfinalizer(finalizer)
257-
return loop.run_until_complete(setup())
258+
return result
258259

259260
fixturedef.func = wrapper
260261
elif inspect.iscoroutinefunction(func):

0 commit comments

Comments
 (0)