From 2ba72a3a5e79e14ae477009987710f24060e69a1 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Thu, 17 Sep 2026 16:24:49 +0300 Subject: [PATCH] fixtures: remove dead dedupe code in `--fixtures` implementation This was added in 44ecf2ab2f64868de086fddf43373ba3f7805d11 as part of a feature that has since been reverted in 707b6b5e3fee6626c9ea9496b41f42077895864c. The branch is not covered by the test suite, let's just remove this code. --- src/_pytest/fixtures.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index 7656fca2f5b..6f5d7082311 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -2512,12 +2512,7 @@ def _showfixtures_main(config: Config, session: Session) -> None: fm = session._fixturemanager available = [] - seen: set[tuple[str, str]] = set() for fixturedef in fm._get_all_fixture_defs(): - loc = getlocation(fixturedef.func, invocation_dir) - if (fixturedef.argname, loc) in seen: - continue - seen.add((fixturedef.argname, loc)) available.append( ( len(fixturedef.baseid),