Minor fix (code improvement)

This commit is contained in:
Serhii Mozghovyi 2018-06-28 14:53:06 +03:00
parent 1dc5e97ac2
commit c220fb235a
1 changed files with 1 additions and 3 deletions

View File

@ -310,9 +310,7 @@ class FuncFixtureInfo(object):
if argname in self.name2fixturedefs:
working_set.update(self.name2fixturedefs[argname][-1].argnames)
self.names_closure[:] = sorted(
closure, key=lambda name: self.names_closure.index(name)
)
self.names_closure[:] = sorted(closure, key=self.names_closure.index)
class FixtureRequest(FuncargnamesCompatAttr):