Skip to content

Commit 600b294

Browse files
authored
Merge pull request #164 from plammens/fix/162-pytest-6.2.0-_getautousenames-is-generator
fix: Wrap _getautousenames generator call in list()
2 parents 8febdee + ca25f14 commit 600b294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_cases/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def create_super_closure(fm,
647647
print("Creating closure for %s:" % parentid)
648648

649649
# -- auto-use fixtures
650-
_init_fixnames = fm._getautousenames(parentid) # noqa
650+
_init_fixnames = list(fm._getautousenames(parentid)) # noqa
651651

652652
def _merge(new_items, into_list):
653653
""" Appends items from `new_items` into `into_list`, only if they are not already there. """

0 commit comments

Comments
 (0)