Skip to content

Commit a2be72d

Browse files
authored
Merge pull request #8349 from AryazE/type_comparison
2 parents f7f3af7 + 282f740 commit a2be72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/test_image_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test(mode: str) -> tuple[tuple[int, ...], str, int]:
2424

2525
def test_with_dtype(dtype: npt.DTypeLike) -> None:
2626
ai = numpy.array(im, dtype=dtype)
27-
assert ai.dtype == dtype
27+
assert ai.dtype.type is dtype
2828

2929
# assert test("1") == ((100, 128), '|b1', 1600))
3030
assert test("L") == ((100, 128), "|u1", 12800)

0 commit comments

Comments
 (0)