mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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
|
||||
"""
|
||||
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user