diff --git a/asdf/_tests/test_yaml.py b/asdf/_tests/test_yaml.py index b51cb39f1..4438bfb69 100644 --- a/asdf/_tests/test_yaml.py +++ b/asdf/_tests/test_yaml.py @@ -42,7 +42,7 @@ def _roundtrip(obj): return buff.getvalue(), af["obj"] -def test_ordered_dict(with_lazy_tree): +def test_ordered_dict(): """ Test that we can write out and read in ordered dicts. """ diff --git a/asdf/exceptions.py b/asdf/exceptions.py index 4abe1dc32..879aa25c2 100644 --- a/asdf/exceptions.py +++ b/asdf/exceptions.py @@ -3,7 +3,7 @@ __all__ = [ "AsdfConversionWarning", "AsdfDeprecationWarning", - "AsdfLazyRefereneceError", + "AsdfLazyReferenceError", "AsdfManifestURIMismatchWarning", "AsdfPackageVersionWarning", "AsdfProvisionalAPIWarning", @@ -65,9 +65,11 @@ class AsdfManifestURIMismatchWarning(AsdfWarning): contains a id that does not match the uri of the manifest. """ + class AsdfLazyReferenceError(ReferenceError): """ Indicates that the lazy tree node failed to resolve a reference to an AsdfFile instance. This likely means the AsdfFile was garbage collected and you may need to update your code to keep the AsdfFile in memory (by keeping a reference). + """