fix teardown-ordering for parametrized setups/teardowns

This commit is contained in:
holger krekel
2012-10-22 12:16:54 +02:00
parent 036557ac18
commit f28f073c7c
5 changed files with 42 additions and 3 deletions

View File

@@ -1531,7 +1531,7 @@ class FixtureManager:
item.session._setupstate._callfinalizers((name, param))
l = self._arg2finish.get(name)
if l is not None:
for fin in l:
for fin in reversed(l):
fin()
def parsefactories(self, node_or_obj, nodeid=None, unittest=False):