From e5d73510ff7ccafbd09fe239aea187a275953106 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 8 Dec 2023 17:43:01 -0500 Subject: [PATCH] remove _force_raw_types from an integer test --- asdf/_tests/tags/core/tests/test_integer.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/asdf/_tests/tags/core/tests/test_integer.py b/asdf/_tests/tags/core/tests/test_integer.py index 6e86de88e..e27203abb 100644 --- a/asdf/_tests/tags/core/tests/test_integer.py +++ b/asdf/_tests/tags/core/tests/test_integer.py @@ -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():