Merge pull request #337 from HttpRunner/bugfix

bugfix: repalce BaseException with Exception
This commit is contained in:
debugtalk
2018-08-09 15:01:08 +08:00
committed by GitHub

View File

@@ -6,7 +6,7 @@ from httprunner.compat import JSONDecodeError, FileNotFoundError
these exceptions will mark test as failure
"""
class MyBaseFailure(BaseException):
class MyBaseFailure(Exception):
pass
class ValidationFailure(MyBaseFailure):
@@ -26,7 +26,7 @@ class TeardownHooksFailure(MyBaseFailure):
these exceptions will mark test as error
"""
class MyBaseError(BaseException):
class MyBaseError(Exception):
pass
class FileFormatError(MyBaseError):