Skip to content

Commit c7193f7

Browse files
committed
Updated error message
1 parent d02f786 commit c7193f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/test_image_resample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def test_wrong_arguments(self, resample: Image.Resampling) -> None:
462462
im.resize((32, 32), resample, (20, 20, 20, 100))
463463
im.resize((32, 32), resample, (20, 20, 100, 20))
464464

465-
with pytest.raises(TypeError, match="must be sequence of length 4"):
465+
with pytest.raises(TypeError, match="must be (sequence|tuple) of length 4"):
466466
im.resize((32, 32), resample, (im.width, im.height)) # type: ignore[arg-type]
467467

468468
with pytest.raises(ValueError, match="can't be negative"):

0 commit comments

Comments
 (0)