Skip to content

Commit

Permalink
remove _force_raw_types from an integer test
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Dec 8, 2023
1 parent d4ed620 commit e5d7351
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions asdf/_tests/tags/core/tests/test_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ def test_integer_storage(tmpdir, inline):
with asdf.AsdfFile(tree) as af:
af.write_to(tmpfile)

with asdf.open(tmpfile, _force_raw_types=True) as rf:
if inline:
assert "source" not in rf.tree["integer"]["words"]
assert "data" in rf.tree["integer"]["words"]
else:
assert "source" in rf.tree["integer"]["words"]
assert "data" not in rf.tree["integer"]["words"]

assert "string" in rf.tree["integer"]
assert rf.tree["integer"]["string"] == str(value)
tree = asdf.util.load_yaml(tmpfile, as_tagged=True)
if inline:
assert "source" not in tree["integer"]["words"]
assert "data" in tree["integer"]["words"]
else:
assert "source" in tree["integer"]["words"]
assert "data" not in tree["integer"]["words"]

assert "string" in tree["integer"]
assert tree["integer"]["string"] == str(value)


def test_integer_conversion():
Expand Down

0 comments on commit e5d7351

Please sign in to comment.