def setup(*args): try: core.deleteCounters() except core.ExecutingError: pass core.createCounters() core.startCounters()
def teardown(*args): try: core.stopCounters() core.parseCountersFile() finally: core.deleteCounters()