Skip to content

Commit fee02ea

Browse files
committed
Perform in check against cached fixturedefs
1 parent 9675b59 commit fee02ea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Changelog
33
=========
44

5+
UNRELEASED
6+
=================
7+
- Fixed an issue which prevented fixture setup from being cached. `#404 <https://github.com/pytest-dev/pytest-asyncio/pull/404>`_
8+
59
0.19.0 (22-07-13)
610
=================
711
- BREAKING: The default ``asyncio_mode`` is now *strict*. `#293 <https://github.com/pytest-dev/pytest-asyncio/issues/293>`_

pytest_asyncio/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _preprocess_async_fixtures(config: Config, holder: Set[FixtureDef]) -> None:
203203
fixturemanager = config.pluginmanager.get_plugin("funcmanage")
204204
for fixtures in fixturemanager._arg2fixturedefs.values():
205205
for fixturedef in fixtures:
206-
if fixturedef is holder:
206+
if fixturedef in holder:
207207
continue
208208
func = fixturedef.func
209209
if not _is_coroutine_or_asyncgen(func):

0 commit comments

Comments
 (0)