bugfix #53: ensure teardown functions executed when test fail

This commit is contained in:
debugtalk
2017-11-13 22:53:09 +08:00
parent bb9eb11161
commit f9e9f75f05
3 changed files with 10 additions and 4 deletions

View File

@@ -1 +1 @@
__version__ = '0.8.1c'
__version__ = '0.8.1d'

View File

@@ -138,8 +138,8 @@ class Runner(object):
err_msg += u"HTTP response content: \n{}".format(resp.text)
logging.error(err_msg)
raise
setup_teardown(teardown_actions)
finally:
setup_teardown(teardown_actions)
return True