From 0d80a9c72941bdf90f2f10d57583b0bca1d2674b Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Mon, 30 May 2016 18:00:31 +0100 Subject: [PATCH] Change _showfixtures_main to loop over fixturedefs --- _pytest/python.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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