Skip to content

Commit 2114687

Browse files
author
Sylvain MARIE
committed
Ids should not be used when setting a NOT_USED parametrization. Fixes #43
1 parent 1ece3ef commit 2114687

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_cases/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,7 @@ def _cleanup_calls_list(self, calls, nodes, pending):
718718
else:
719719
_vals = [NOT_USED]
720720
c_with_dummy = self._parametrize_calls([c], p_to_apply.argnames, _vals,
721-
indirect=p_to_apply.indirect, ids=p_to_apply.ids,
722-
discard_id=True,
721+
indirect=p_to_apply.indirect, discard_id=True,
723722
scope=p_to_apply.scope, **p_to_apply.kwargs)
724723
assert len(c_with_dummy) == 1
725724
calls[i] = c_with_dummy[0]

0 commit comments

Comments
 (0)