We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bafb968 commit cca80e2Copy full SHA for cca80e2
1 file changed
Tests/test_pyarrow.py
@@ -25,7 +25,9 @@ def _test_img_equals_pyarray(img: Image.Image, arr: Any, mask) -> None:
25
for y in range(0, img.size[1], int(img.size[1] / 10)):
26
if mask:
27
for ix, elt in enumerate(mask):
28
- assert px[x, y][ix] == arr[y * img.width + x].as_py()[elt]
+ pixel = px[x, y]
29
+ assert isinstance(pixel, tuple)
30
+ assert pixel[ix] == arr[y * img.width + x].as_py()[elt]
31
else:
32
assert_deep_equal(px[x, y], arr[y * img.width + x].as_py())
33
0 commit comments