From 18b714796941a60131cf6f7027c2e4aa92558cdb Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Fri, 29 Dec 2023 19:36:48 +0330 Subject: [PATCH] Revert a tiny change --- src/_pytest/python.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 28d7d3caf..973a18f3c 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -1158,7 +1158,7 @@ class CallSpec2: arg2scope = dict(self._arg2scope) for arg, val, param_index in zip(argnames, valset, param_indices): if arg in params: - raise ValueError(f"duplicate {arg!r}") + raise ValueError(f"duplicate parametrization of {arg!r}") params[arg] = val indices[arg] = param_index arg2scope[arg] = scope @@ -1396,8 +1396,8 @@ class Metafunc: object.__setattr__(_param_mark._param_ids_from, "_param_ids_generated", ids) # Add funcargs as fixturedefs to fixtureinfo.arg2fixturedefs by registering - # artificial FixtureDef's so that later at test execution time we can rely - # on a proper FixtureDef to exist for fixture setup. + # artificial FixtureDef's so that later at test execution time we can + # rely on a proper FixtureDef to exist for fixture setup. arg2fixturedefs = self._arg2fixturedefs node = None # If we have a scope that is higher than function, we need