diff --git a/asdf/_tests/test_reference.py b/asdf/_tests/test_reference.py index 6b4c384a4..f618865fd 100644 --- a/asdf/_tests/test_reference.py +++ b/asdf/_tests/test_reference.py @@ -78,9 +78,7 @@ def do_asserts(ff): assert_array_equal(ff.tree["internal"], exttree["cool_stuff"]["a"]) - with asdf.AsdfFile({}, uri=(tmp_path / "main.asdf").as_uri(), memmap=True) as ff: - # avoid passing tree to AsdfFile to avoid the deprecation warning, this can be updated - # when automatic find_references on AsdfFile.__init__ is removed + with asdf.AsdfFile({}, uri=(tmp_path / "main.asdf").as_uri()) as ff: ff.tree = tree ff.find_references() do_asserts(ff)