Skip to content

Commit 2af8016

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d806631 commit 2af8016

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,7 @@ def make_unique_parameterset_ids(self) -> list[str | _HiddenParam]:
903903
resolved_ids = list(self._resolve_ids())
904904
# All IDs must be unique!
905905
if len(resolved_ids) != len(set(resolved_ids)):
906-
if self.config and self.config.getoption(
907-
"require_unique_paramset_ids"
908-
):
906+
if self.config and self.config.getoption("require_unique_paramset_ids"):
909907
duplicate_indexs = defaultdict(list)
910908
for i, val in enumerate(resolved_ids):
911909
duplicate_indexs[val].append(i)

0 commit comments

Comments
 (0)