Exemplo n.º 1
0
    def __exit__(self, type_, value, traceback):
        self._teardown()
        if self.setup_exc_info:
            type_, value, traceback = self.setup_exc_info
        elif self.teardown_exc_info:
            type_, value, traceback = self.teardown_exc_info

        closest_runner = session.closest('runner')
        if closest_runner:
            closest_runner.handle_result((type_, value, traceback))

        session.pop()
        return True
Exemplo n.º 2
0
 def __exit__(self, *args):
     session.pop()
     return False
Exemplo n.º 3
0
 def __exit__(self, *args):
     session.pop()