From ecd0e5e15e4428be2ebc0d9dc04bb1828188d3af Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 11 Apr 2018 17:31:41 +0300 Subject: [PATCH] check exception type only --- Tests/test_color_lut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_color_lut.py b/Tests/test_color_lut.py index c9c71bc80..9de2cf245 100644 --- a/Tests/test_color_lut.py +++ b/Tests/test_color_lut.py @@ -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):