diff --git a/sklearn/feature_extraction/tests/test_image.py b/sklearn/feature_extraction/tests/test_image.py index 2ab7a323b38..1051f99b1a8 100644 --- a/sklearn/feature_extraction/tests/test_image.py +++ b/sklearn/feature_extraction/tests/test_image.py @@ -184,7 +184,7 @@ def test_reconstruct_patches_perfect(): patches = extract_patches_2d(face, (p_h, p_w)) face_reconstructed = reconstruct_from_patches_2d(patches, face.shape) - np.testing.assert_array_equal(face, face_reconstructed) + np.testing.assert_array_almost_equal(face, face_reconstructed) def test_reconstruct_patches_perfect_color():