This adds a new test helper function assert_image_close to assert that two Images are close using their RGBA components. This is used straightaway in test_shade for which an increased tolerance was added on GPU in #1129 and I have observed similar differences recently on macOS arm64 with latest numba and numpy. The test happens to have a value very near halfway between two integers so slightly different rounding can occur.
This adds a new test helper function
assert_image_close
to assert that twoImage
s are close using their RGBA components. This is used straightaway intest_shade
for which an increased tolerance was added on GPU in #1129 and I have observed similar differences recently on macOS arm64 with latestnumba
andnumpy
. The test happens to have a value very near halfway between two integers so slightly different rounding can occur.