diff --git a/_pytest/python.py b/_pytest/python.py index 8543549df..21d78aea3 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -1168,12 +1168,12 @@ def _showfixtures_main(config, session): assert fixturedefs is not None if not fixturedefs: continue - fixturedef = fixturedefs[-1] - loc = getlocation(fixturedef.func, curdir) - available.append((len(fixturedef.baseid), - fixturedef.func.__module__, - curdir.bestrelpath(loc), - fixturedef.argname, fixturedef)) + for fixturedef in fixturedefs: + loc = getlocation(fixturedef.func, curdir) + available.append((len(fixturedef.baseid), + fixturedef.func.__module__, + curdir.bestrelpath(loc), + fixturedef.argname, fixturedef)) available.sort() currentmodule = None