fix issue90 - perform teardown after its actual test function/item. This is implemented by modifying the runtestprotocol to remember "pending" teardowns and call them before the setup of the next item.

This commit is contained in:
holger krekel
2011-11-18 16:01:29 +00:00
parent efe438d3e8
commit a5e7b2760d
10 changed files with 103 additions and 39 deletions

View File

@@ -387,6 +387,7 @@ class FuncargLookupErrorRepr(TerminalRepr):
tw.line()
tw.line("%s:%d" % (self.filename, self.firstlineno+1))
class Generator(FunctionMixin, PyCollectorMixin, pytest.Collector):
def collect(self):
# test generators are seen as collectors but they also