@@ -103,14 +103,7 @@ def gradient_RGBa(self):
103103 ],
104104 )
105105
106- @pytest .mark .parametrize (
107- "mode" ,
108- [
109- "RGBA" ,
110- "RGB" ,
111- "L" ,
112- ],
113- )
106+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
114107 def test_image_solid (self , mode ):
115108 im = Image .new (mode , (200 , 200 ), "red" )
116109 im2 = getattr (self , "gradient_" + mode )
@@ -120,14 +113,7 @@ def test_image_solid(self, mode):
120113 im = im .crop ((12 , 23 , im2 .width + 12 , im2 .height + 23 ))
121114 assert_image_equal (im , im2 )
122115
123- @pytest .mark .parametrize (
124- "mode" ,
125- [
126- "RGBA" ,
127- "RGB" ,
128- "L" ,
129- ],
130- )
116+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
131117 def test_image_mask_1 (self , mode ):
132118 im = Image .new (mode , (200 , 200 ), "white" )
133119 im2 = getattr (self , "gradient_" + mode )
@@ -149,14 +135,7 @@ def test_image_mask_1(self, mode):
149135 ],
150136 )
151137
152- @pytest .mark .parametrize (
153- "mode" ,
154- [
155- "RGBA" ,
156- "RGB" ,
157- "L" ,
158- ],
159- )
138+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
160139 def test_image_mask_L (self , mode ):
161140 im = Image .new (mode , (200 , 200 ), "white" )
162141 im2 = getattr (self , "gradient_" + mode )
@@ -178,14 +157,7 @@ def test_image_mask_L(self, mode):
178157 ],
179158 )
180159
181- @pytest .mark .parametrize (
182- "mode" ,
183- [
184- "RGBA" ,
185- "RGB" ,
186- "L" ,
187- ],
188- )
160+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
189161 def test_image_mask_LA (self , mode ):
190162 im = Image .new (mode , (200 , 200 ), "white" )
191163 im2 = getattr (self , "gradient_" + mode )
@@ -207,14 +179,7 @@ def test_image_mask_LA(self, mode):
207179 ],
208180 )
209181
210- @pytest .mark .parametrize (
211- "mode" ,
212- [
213- "RGBA" ,
214- "RGB" ,
215- "L" ,
216- ],
217- )
182+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
218183 def test_image_mask_RGBA (self , mode ):
219184 im = Image .new (mode , (200 , 200 ), "white" )
220185 im2 = getattr (self , "gradient_" + mode )
@@ -236,14 +201,7 @@ def test_image_mask_RGBA(self, mode):
236201 ],
237202 )
238203
239- @pytest .mark .parametrize (
240- "mode" ,
241- [
242- "RGBA" ,
243- "RGB" ,
244- "L" ,
245- ],
246- )
204+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
247205 def test_image_mask_RGBa (self , mode ):
248206 im = Image .new (mode , (200 , 200 ), "white" )
249207 im2 = getattr (self , "gradient_" + mode )
@@ -265,14 +223,7 @@ def test_image_mask_RGBa(self, mode):
265223 ],
266224 )
267225
268- @pytest .mark .parametrize (
269- "mode" ,
270- [
271- "RGBA" ,
272- "RGB" ,
273- "L" ,
274- ],
275- )
226+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
276227 def test_color_solid (self , mode ):
277228 im = Image .new (mode , (200 , 200 ), "black" )
278229
@@ -285,14 +236,7 @@ def test_color_solid(self, mode):
285236 assert head [255 ] == 128 * 128
286237 assert sum (head [:255 ]) == 0
287238
288- @pytest .mark .parametrize (
289- "mode" ,
290- [
291- "RGBA" ,
292- "RGB" ,
293- "L" ,
294- ],
295- )
239+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
296240 def test_color_mask_1 (self , mode ):
297241 im = Image .new (mode , (200 , 200 ), (50 , 60 , 70 , 80 )[: len (mode )])
298242 color = (10 , 20 , 30 , 40 )[: len (mode )]
@@ -314,14 +258,7 @@ def test_color_mask_1(self, mode):
314258 ],
315259 )
316260
317- @pytest .mark .parametrize (
318- "mode" ,
319- [
320- "RGBA" ,
321- "RGB" ,
322- "L" ,
323- ],
324- )
261+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
325262 def test_color_mask_L (self , mode ):
326263 im = getattr (self , "gradient_" + mode ).copy ()
327264 color = "white"
@@ -343,14 +280,7 @@ def test_color_mask_L(self, mode):
343280 ],
344281 )
345282
346- @pytest .mark .parametrize (
347- "mode" ,
348- [
349- "RGBA" ,
350- "RGB" ,
351- "L" ,
352- ],
353- )
283+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
354284 def test_color_mask_RGBA (self , mode ):
355285 im = getattr (self , "gradient_" + mode ).copy ()
356286 color = "white"
@@ -372,14 +302,7 @@ def test_color_mask_RGBA(self, mode):
372302 ],
373303 )
374304
375- @pytest .mark .parametrize (
376- "mode" ,
377- [
378- "RGBA" ,
379- "RGB" ,
380- "L" ,
381- ],
382- )
305+ @pytest .mark .parametrize ("mode" , ["RGBA" , "RGB" , "L" ])
383306 def test_color_mask_RGBa (self , mode ):
384307 im = getattr (self , "gradient_" + mode ).copy ()
385308 color = "white"
0 commit comments