diff --git a/test/test_transforms.py b/test/test_transforms.py index e0f8d4a5927..6534caa90b2 100644 --- a/test/test_transforms.py +++ b/test/test_transforms.py @@ -2067,7 +2067,7 @@ def _test_transformation(self, angle, translate, scale, shear, pil_image, input_ # https://github.com/python-pillow/Pillow/blob/71f8ec6a0cfc1008076a023c0756542539d057ab/ # src/libImaging/Geometry.c#L1060 input_pt = np.array([x + 0.5, y + 0.5, 1.0]) - res = np.floor(np.dot(inv_true_matrix, input_pt)).astype(np.int) + res = np.floor(np.dot(inv_true_matrix, input_pt)).astype(int) _x, _y = res[:2] if 0 <= _x < input_img.shape[1] and 0 <= _y < input_img.shape[0]: true_result[y, x, :] = input_img[_y, _x, :]