From ca25f14e4cfe41a4a1ac335d7a1f52ca18da0b26 Mon Sep 17 00:00:00 2001 From: Paolo Lammens Date: Sun, 13 Dec 2020 20:24:31 +0100 Subject: [PATCH] fix: Wrap _getautousenames generator call in list() Before pytest 6.2.0, _getautousenames returned a list. Now it returns a generator so it's necessary to explicitly collect it into a list. --- pytest_cases/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_cases/plugin.py b/pytest_cases/plugin.py index c0284480..697f488b 100644 --- a/pytest_cases/plugin.py +++ b/pytest_cases/plugin.py @@ -647,7 +647,7 @@ def create_super_closure(fm, print("Creating closure for %s:" % parentid) # -- auto-use fixtures - _init_fixnames = fm._getautousenames(parentid) # noqa + _init_fixnames = list(fm._getautousenames(parentid)) # noqa def _merge(new_items, into_list): """ Appends items from `new_items` into `into_list`, only if they are not already there. """