def main(): try: test_dashvisor.setUp() while True: time.sleep(10) except KeyboardInterrupt: print('stopping..') test_dashvisor.tearDown() print('stopped')
def main(): try: test_dashvisor.setUp() while True: time.sleep(10) except KeyboardInterrupt: print 'stoping..' test_dashvisor.tearDown() print 'stoped'
#!/usr/bin/env python from time import sleep from test_dashvisor import setUp, tearDown if __name__ == '__main__': try: setUp() while True: sleep(100) except (Exception, KeyboardInterrupt), e: tearDown()