diff --git a/stix2/sources/memory.py b/stix2/sources/memory.py index f094f90..0c208a8 100644 --- a/stix2/sources/memory.py +++ b/stix2/sources/memory.py @@ -297,7 +297,6 @@ class MemorySource(DataSource): if stix_data["type"] == "bundle": for stix_obj in stix_data["objects"]: - print(stix_obj) _add(self, stix_data=parse(stix_obj, allow_custom=self.allow_custom, version=stix_data["spec_version"])) else: _add(self, stix_data=parse(stix_obj, allow_custom=self.allow_custom, version=version)) diff --git a/stix2/test/test_versioning.py b/stix2/test/test_versioning.py index 233587e..dcbd3d3 100644 --- a/stix2/test/test_versioning.py +++ b/stix2/test/test_versioning.py @@ -223,8 +223,8 @@ def test_remove_custom_stix_property(): mal_nc = stix2.utils.remove_custom_stix(mal) assert "x_custom" not in mal_nc - assert stix2.utils.parse_into_datetime(mal["modified"], precision="millisecond") < stix2.utils.parse_into_datetime(mal_nc["modified"], - precision="millisecond") + assert stix2.utils.parse_into_datetime(mal["modified"], precision="microsecond") < stix2.utils.parse_into_datetime(mal_nc["modified"], + precision="microsecond") def test_remove_custom_stix_object(): diff --git a/stix2/utils.py b/stix2/utils.py index 10de8b0..3129a5c 100644 --- a/stix2/utils.py +++ b/stix2/utils.py @@ -1,5 +1,4 @@ """Utility functions and classes for the stix2 library.""" -# HACK from collections import Mapping import copy import datetime as dt