Skip to content

Commit 9e29187

Browse files
committed
fixes no funcargs
1 parent a95f2a5 commit 9e29187

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_cases/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def pytest_runtest_setup(item):
5656
yield # first let all other hooks run, they will do the setup etc.
5757

5858
# now item.funcargs exists so we can handle it
59-
item.funcargs = {argname: get_lazy_args(argvalue) for argname, argvalue in item.funcargs.items()}
59+
if hasattr(item, "funcargs"):
60+
item.funcargs = {argname: get_lazy_args(argvalue) for argname, argvalue in item.funcargs.items()}
6061

6162

6263
# @pytest.hookimpl(tryfirst=True, hookwrapper=True)

0 commit comments

Comments
 (0)