mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-10 10:19:38 +08:00
fix #942: type_match None
This commit is contained in:
@@ -80,7 +80,10 @@ def type_match(check_value, expect_value):
|
||||
else:
|
||||
raise ValueError(name)
|
||||
|
||||
assert isinstance(check_value, get_type(expect_value))
|
||||
if expect_value in ["None", "NoneType", None]:
|
||||
assert check_value is None
|
||||
else:
|
||||
assert type(check_value) == get_type(expect_value)
|
||||
|
||||
|
||||
def regex_match(check_value, expect_value):
|
||||
|
||||
Reference in New Issue
Block a user