mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
check exception type only
This commit is contained in:
parent
acfd4845c6
commit
ecd0e5e15e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user