Skip to content

Commit

Permalink
apply review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Graham <[email protected]>
zacharyburnett and braingram authored Nov 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d107b46 commit 06e0d66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions asdf/_tests/test_reference.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 06e0d66

Please sign in to comment.