diff --git a/Tests/test_color_lut.py b/Tests/test_color_lut.py index 52539fee0..7414d9476 100644 --- a/Tests/test_color_lut.py +++ b/Tests/test_color_lut.py @@ -66,7 +66,7 @@ class TestColorLut3DCoreAPI(PillowTestCase): im.im.color_lut_3d('RGB', Image.LINEAR, 3, 2, 2, 2, [0, 0, 0] * 9) - with self.assertRaisesRegexp(TypeError, "a float is required"): + with self.assertRaises(TypeError): im.im.color_lut_3d('RGB', Image.LINEAR, 3, 2, 2, 2, [0, 0, "0"] * 8)