Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Isotr0py committed Oct 7, 2024
1 parent 3c54028 commit 5247421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_decode():
assert img_jxl.mode == img_png.mode == "RGBA"
assert not img_jxl.is_animated
assert img_jxl.n_frames == 1
assert list(img_jxl.getdata()) == list(img_png.getdata())
assert np.allclose(np.array(img_jxl), np.array(img_png))


def test_decode_I16():
Expand All @@ -26,7 +26,7 @@ def test_decode_I16():
assert img_jxl.mode == img_png.mode == "I;16"
assert not img_jxl.is_animated
assert img_jxl.n_frames == 1
# assert list(img_jxl.getdata()) == list(img_png.getdata())
# we need to use atol=1 here otherwise the test will fail on MacOS
assert np.allclose(np.array(img_jxl), np.array(img_png), rtol=1e-3, atol=1)


Expand Down

0 comments on commit 5247421

Please sign in to comment.