mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 01:39:39 +08:00
bugfix: TypeError in match_expected
This commit is contained in:
@@ -192,7 +192,8 @@ def match_expected(value, expected, comparator="eq", check_item=""):
|
||||
raise exception.ParamsError("comparator not supported!")
|
||||
|
||||
return True
|
||||
except AssertionError:
|
||||
|
||||
except (AssertionError, TypeError):
|
||||
err_msg = "\n".join([
|
||||
"check item name: %s;" % check_item,
|
||||
"check item value: %s (%s);" % (value, type(value).__name__),
|
||||
|
||||
Reference in New Issue
Block a user