Skip to content

Commit

Permalink
Perform in check against cached fixturedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin authored Sep 1, 2022
1 parent 9675b59 commit fbd4702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _preprocess_async_fixtures(config: Config, holder: Set[FixtureDef]) -> None:
fixturemanager = config.pluginmanager.get_plugin("funcmanage")
for fixtures in fixturemanager._arg2fixturedefs.values():
for fixturedef in fixtures:
if fixturedef is holder:
if fixturedef in holder:
continue
func = fixturedef.func
if not _is_coroutine_or_asyncgen(func):
Expand Down

0 comments on commit fbd4702

Please sign in to comment.