Change _showfixtures_main to loop over fixturedefs
This commit is contained in:
parent
357a7c79ef
commit
0d80a9c729
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue