Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain MARIE committed Jul 30, 2020
2 parents 62e5681 + e725796 commit a95f2a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pytest_cases/common_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,12 @@ def get_pytest_function_scopenum():

from _pytest.python import _idval # noqa


if LooseVersion(pytest.__version__) >= LooseVersion('3.0.0'):
if LooseVersion(pytest.__version__) >= LooseVersion('6.0.0'):
_idval_kwargs = dict(idfn=None,
nodeid=None, # item is not used in pytest(>=6.0.0) nodeid is only used by idfn
config=None # if a config hook was available it would be used before this is called)
)
elif LooseVersion(pytest.__version__) >= LooseVersion('3.0.0'):
_idval_kwargs = dict(idfn=None,
item=None, # item is only used by idfn
config=None # if a config hook was available it would be used before this is called)
Expand Down

0 comments on commit a95f2a5

Please sign in to comment.