Skip to content

Commit ab81cad

Browse files
akxradarhere
andauthored
Update Tests/test_image_getbbox.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent d07694f commit ab81cad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/test_image_getbbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def check(im: Image.Image, fill_color: int | tuple[int, ...]) -> None:
6565
def test_bbox_edges(mode: str, box: tuple[int, int, int, int]) -> None:
6666
im = Image.new(mode, (100, 100), 0)
6767
bands = Image.getmodebands(mode)
68-
im.paste(255 if bands == 1 else (255,) * bands, box)
68+
im.paste((255,) * bands, box)
6969
assert im.getbbox() == box
7070

7171

0 commit comments

Comments
 (0)