Don't be so strict about exact error message

stix2.1
Greg Back 2017-03-22 08:33:42 -05:00
parent a2f5981dfb
commit 08dcfee64c
1 changed files with 1 additions and 1 deletions

View File

@ -22,4 +22,4 @@ def test_encode_json_object():
with pytest.raises(TypeError) as excinfo: with pytest.raises(TypeError) as excinfo:
json.dumps(test_dict, cls=STIXJSONEncoder) json.dumps(test_dict, cls=STIXJSONEncoder)
assert str(excinfo.value) == "Object of type 'object' is not JSON serializable" assert " is not JSON serializable" in str(excinfo.value)