method: test.Session.footer

 teardown any resources we know about. 
    def footer(self, colitems):

origin: test.Session

where:

function source:

def footer(self, colitems):
    """ teardown any resources we know about. """
    py.test.Function.state.teardown_all()
    if not self.config.option.nomagic:
        py.magic.revoke(assertion=1)