From 4f428f64e5fab2b2015ad5a79b1a63d4f61769ee Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Mon, 2 Oct 2023 14:34:08 +0200 Subject: [PATCH] Use `pytest.approx` for dict comparison to test on other architectures --- src/mc_optimade/tests/test_convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc_optimade/tests/test_convert.py b/src/mc_optimade/tests/test_convert.py index f547a50..32ea1c7 100644 --- a/src/mc_optimade/tests/test_convert.py +++ b/src/mc_optimade/tests/test_convert.py @@ -59,7 +59,7 @@ def test_convert_example_archives(archive_path, tmp_path): species, key=lambda x: x["name"] ) - assert next_entry == first_entry + assert next_entry == pytest.approx(first_entry) def test_decompress_bz2(tmp_path):