bugfix: TypeError in match_expected

This commit is contained in:
httprunner
2017-08-02 15:21:37 +08:00
parent 4d471d7cda
commit 74d653f94d
2 changed files with 8 additions and 1 deletions

View File

@@ -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__),