Skip to content

Commit fbd4702

Browse files
authored
Perform in check against cached fixturedefs
1 parent 9675b59 commit fbd4702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)