def tearDownClass(cls): SignerTestCase.tearDownClass() try: requests.get("http://127.0.0.1:%s/shutdown" % cls.port) except Exception, ex: from traceback import print_exc print_exc(ex)
def tearDownClass(cls): SignerTestCase.tearDownClass() requests.get("http://127.0.0.1:8080/shutdown") if os.path.exists(cls.mdx): os.unlink(cls.mdx) if os.path.exists(cls.pidfile): os.unlink(cls.pidfile) cls.pyffd_thread.join()
def tearDownClass(cls): SignerTestCase.tearDownClass() try: requests.get("http://127.0.0.1:%s/shutdown" % cls.port) except Exception as ex: from traceback import print_exc print_exc(ex) finally: if os.path.exists(cls.mdx): os.unlink(cls.mdx) if os.path.exists(cls.pidfile): os.unlink(cls.pidfile) if os.path.exists(cls.logfile): os.unlink(cls.logfile) cls.pyffd_thread.join()
def tearDownClass(cls): SignerTestCase.tearDownClass() try: requests.get("http://127.0.0.1:%s/shutdown" % cls.port) with open(cls.logfile) as fd: print ("+++ DEBUG log +++") print("\n".join(fd.readlines())) except Exception as ex: from traceback import print_exc print_exc(ex) finally: if os.path.exists(cls.mdx): os.unlink(cls.mdx) if os.path.exists(cls.pidfile): os.unlink(cls.pidfile) if os.path.exists(cls.logfile): os.unlink(cls.logfile) cls.pyffd_thread.join()
def tearDownClass(cls): SignerTestCase.tearDownClass() try: requests.get("http://127.0.0.1:%s/shutdown" % cls.port) with open(cls.logfile) as fd: print("+++ DEBUG log +++") print("\n".join(fd.readlines())) except Exception as ex: from traceback import print_exc print_exc(ex) finally: if os.path.exists(cls.mdx): os.unlink(cls.mdx) if os.path.exists(cls.pidfile): os.unlink(cls.pidfile) if os.path.exists(cls.logfile): os.unlink(cls.logfile) cls.pyffd_thread.join()
def tearDownClass(cls): SignerTestCase.tearDownClass() if os.path.exists(cls.mdx): os.unlink(cls.mdx)
def tearDownClass(cls): SignerTestCase.tearDownClass() if os.path.exists(cls.mdx): os.unlink(cls.mdx) if os.path.exists(config.local_copy_dir): shutil.rmtree(config.local_copy_dir)