Skip to content

Commit

Permalink
Merge pull request #123 from chinghwayu/fix-no-funcargs
Browse files Browse the repository at this point in the history
Fixes no funcargs
  • Loading branch information
smarie authored Aug 10, 2020
2 parents a95f2a5 + 9e29187 commit b741bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytest_cases/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def pytest_runtest_setup(item):
yield # first let all other hooks run, they will do the setup etc.

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


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

0 comments on commit b741bb2

Please sign in to comment.