File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -231,15 +231,15 @@ def test_negate() -> None:
231231
232232
233233def test_incorrect_mode () -> None :
234- im = hopper ()
235234 mop = ImageMorph .MorphOp (op_name = "erosion8" )
236235
237- with pytest .raises (ValueError , match = "Image mode must be 1 or L" ):
238- mop .apply (im )
239- with pytest .raises (ValueError , match = "Image mode must be 1 or L" ):
240- mop .match (im )
241- with pytest .raises (ValueError , match = "Image mode must be 1 or L" ):
242- mop .get_on_pixels (im )
236+ with hopper () as im :
237+ with pytest .raises (ValueError , match = "Image mode must be 1 or L" ):
238+ mop .apply (im )
239+ with pytest .raises (ValueError , match = "Image mode must be 1 or L" ):
240+ mop .match (im )
241+ with pytest .raises (ValueError , match = "Image mode must be 1 or L" ):
242+ mop .get_on_pixels (im )
243243
244244
245245def test_add_patterns () -> None :
You can’t perform that action at this time.
0 commit comments