check exception type only

This commit is contained in:
Alexander 2018-04-11 17:31:41 +03:00
parent acfd4845c6
commit ecd0e5e15e

View File

@ -315,7 +315,7 @@ class TestTransformColorLut3D(PillowTestCase):
with self.assertRaisesRegexp(ValueError, "should have either channels"):
source.transform(lambda r, g, b: (r, g, b, 1))
with self.assertRaisesRegexp(TypeError, "takes exactly 4 arguments"):
with self.assertRaises(TypeError):
source.transform(lambda r, g, b, a: (r, g, b))
def test_target_mode(self):