diff --git a/pyninjotiff/tests/test_ninjotiff.py b/pyninjotiff/tests/test_ninjotiff.py index 2d4f224..20c99fa 100644 --- a/pyninjotiff/tests/test_ninjotiff.py +++ b/pyninjotiff/tests/test_ninjotiff.py @@ -519,7 +519,10 @@ def test_write_rgb_tb(): for key, val in tags.items(): if key in ['datetime', '40002', '40003', '40006']: continue - assert(val == read_tags[key].value) + if hasattr(val, "dtype") and val.dtype.kinf == "f": + np.testing.assert_allclose(val, read_tags[key].value) + else: + assert(val == read_tags[key].value) @pytest.mark.skip(reason="this is no implemented yet.")