Check exception type only, not string

This commit is contained in:
Alexander 2018-04-14 17:22:21 +03:00
parent aba478abba
commit eae14c56e1

View File

@ -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)