Skip to content

Commit 1cc58ed

Browse files
committed
improve exception message on duplicate parametrization
Signed-off-by: Christoph Anton Mitterer <[email protected]>
1 parent 84a342e commit 1cc58ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ def setmulti(
11481148
arg2scope = self._arg2scope.copy()
11491149
for arg, val in zip(argnames, valset):
11501150
if arg in params or arg in funcargs:
1151-
raise ValueError(f"duplicate {arg!r}")
1151+
raise ValueError(f"duplicate parametrization of {arg!r}")
11521152
valtype_for_arg = valtypes[arg]
11531153
if valtype_for_arg == "params":
11541154
params[arg] = val

0 commit comments

Comments
 (0)