diff --git a/stix2/test/v20/test_datastore_taxii.py b/stix2/test/v20/test_datastore_taxii.py index b0c6b77..0b21981 100644 --- a/stix2/test/v20/test_datastore_taxii.py +++ b/stix2/test/v20/test_datastore_taxii.py @@ -28,7 +28,7 @@ class MockTAXIICollectionEndpoint(Collection): def add_objects(self, bundle): self._verify_can_write() if isinstance(bundle, six.string_types): - bundle = json.loads(bundle, encoding='utf-8') + bundle = json.loads(bundle) for object in bundle.get("objects", []): self.objects.append(object) self.manifests.append( diff --git a/stix2/test/v21/test_datastore_taxii.py b/stix2/test/v21/test_datastore_taxii.py index 28a7368..92ae6dc 100644 --- a/stix2/test/v21/test_datastore_taxii.py +++ b/stix2/test/v21/test_datastore_taxii.py @@ -28,7 +28,7 @@ class MockTAXIICollectionEndpoint(Collection): def add_objects(self, bundle): self._verify_can_write() if isinstance(bundle, six.string_types): - bundle = json.loads(bundle, encoding='utf-8') + bundle = json.loads(bundle) for object in bundle.get("objects", []): self.objects.append(object) self.manifests.append(