Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def tearDown(self):
LogCapture.uninstall_all()
def teardown_method(self):
LogCapture.uninstall_all()
logging.shutdown()
if os.path.isfile(TEST_OUTPUT_LOG):
os.remove(TEST_OUTPUT_LOG)
def tearDown(self):
"""Remove LogCapture."""
LogCapture.uninstall_all()
logging.shutdown()
# remove any existing log file
if os.path.isfile(TEST_OUTPUT_LOG):
os.remove(TEST_OUTPUT_LOG)