Change _showfixtures_main to loop over fixturedefs

This commit is contained in:
Raphael Pierzina 2016-05-30 18:00:31 +01:00
parent 357a7c79ef
commit 0d80a9c729
1 changed files with 6 additions and 6 deletions

View File

@ -1168,12 +1168,12 @@ def _showfixtures_main(config, session):
assert fixturedefs is not None assert fixturedefs is not None
if not fixturedefs: if not fixturedefs:
continue continue
fixturedef = fixturedefs[-1] for fixturedef in fixturedefs:
loc = getlocation(fixturedef.func, curdir) loc = getlocation(fixturedef.func, curdir)
available.append((len(fixturedef.baseid), available.append((len(fixturedef.baseid),
fixturedef.func.__module__, fixturedef.func.__module__,
curdir.bestrelpath(loc), curdir.bestrelpath(loc),
fixturedef.argname, fixturedef)) fixturedef.argname, fixturedef))
available.sort() available.sort()
currentmodule = None currentmodule = None