mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Check exception type only, not string
This commit is contained in:
parent
aba478abba
commit
eae14c56e1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user