mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-05 21:44:21 +08:00
bugfix #53: ensure teardown functions executed when test fail
This commit is contained in:
@@ -1 +1 @@
|
||||
__version__ = '0.8.1c'
|
||||
__version__ = '0.8.1d'
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user