diff --git a/Tests/test_image_array.py b/Tests/test_image_array.py index 1d50dfa4096..eb2309e0ffe 100644 --- a/Tests/test_image_array.py +++ b/Tests/test_image_array.py @@ -24,7 +24,7 @@ def test(mode: str) -> tuple[tuple[int, ...], str, int]: def test_with_dtype(dtype: npt.DTypeLike) -> None: ai = numpy.array(im, dtype=dtype) - assert ai.dtype == dtype + assert ai.dtype.type is dtype # assert test("1") == ((100, 128), '|b1', 1600)) assert test("L") == ((100, 128), "|u1", 12800)