From 08dcfee64ccd9151d58290a71711571c8fbd0559 Mon Sep 17 00:00:00 2001 From: Greg Back Date: Wed, 22 Mar 2017 08:33:42 -0500 Subject: [PATCH] Don't be so strict about exact error message --- stix2/test/test_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/test/test_base.py b/stix2/test/test_base.py index 38a3e45..18d3a50 100644 --- a/stix2/test/test_base.py +++ b/stix2/test/test_base.py @@ -22,4 +22,4 @@ def test_encode_json_object(): with pytest.raises(TypeError) as excinfo: 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)