Skip to content

Commit bc61766

Browse files
author
Sylvain MARIE
committed
TypeError: _idval() got an unexpected keyword argument 'item' with pytest versions between 3.0.0 and 3.7.4. Fixed #136
1 parent 0d49e31 commit bc61766

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_cases/common_pytest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,13 @@ def get_pytest_function_scopenum():
437437
nodeid=None, # item is not used in pytest(>=6.0.0) nodeid is only used by idfn
438438
config=None # if a config hook was available it would be used before this is called)
439439
)
440-
elif LooseVersion(pytest.__version__) >= LooseVersion('3.0.0'):
440+
elif LooseVersion(pytest.__version__) >= LooseVersion('3.8.0'):
441441
_idval_kwargs = dict(idfn=None,
442442
item=None, # item is only used by idfn
443443
config=None # if a config hook was available it would be used before this is called)
444444
)
445445
else:
446446
_idval_kwargs = dict(idfn=None,
447-
# item=None, # item is only used by idfn
448447
# config=None # if a config hook was available it would be used before this is called)
449448
)
450449

0 commit comments

Comments
 (0)