Skip to content

Commit

Permalink
add test for ignore_version_mismatch deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Aug 7, 2024
1 parent 8b53940 commit ced39e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions asdf/_tests/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,9 @@ def test_AsdfFile_ignore_implicit_conversion_deprecation(value):
def test_walk_and_modify_ignore_implicit_conversion_deprecation(value):
with pytest.warns(AsdfDeprecationWarning, match="ignore_implicit_conversion is deprecated"):
asdf.treeutil.walk_and_modify({}, lambda obj: obj, ignore_implicit_conversion=value)


@pytest.mark.parametrize("value", [True, False])
def test_ignore_version_mismatch_deprecation(value):
with pytest.warns(AsdfDeprecationWarning, match="ignore_version_mismatch is deprecated"):
asdf.AsdfFile({}, ignore_version_mismatch=value)

0 comments on commit ced39e8

Please sign in to comment.