mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 15:31:23 +08:00
Merge pull request #337 from HttpRunner/bugfix
bugfix: repalce BaseException with Exception
This commit is contained in:
@@ -6,7 +6,7 @@ from httprunner.compat import JSONDecodeError, FileNotFoundError
|
|||||||
these exceptions will mark test as failure
|
these exceptions will mark test as failure
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class MyBaseFailure(BaseException):
|
class MyBaseFailure(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class ValidationFailure(MyBaseFailure):
|
class ValidationFailure(MyBaseFailure):
|
||||||
@@ -26,7 +26,7 @@ class TeardownHooksFailure(MyBaseFailure):
|
|||||||
these exceptions will mark test as error
|
these exceptions will mark test as error
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class MyBaseError(BaseException):
|
class MyBaseError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class FileFormatError(MyBaseError):
|
class FileFormatError(MyBaseError):
|
||||||
|
|||||||
Reference in New Issue
Block a user