Merge pull request #7950 from Yay295/patch-1

Rename test_roundtrip() to test_mode()
This commit is contained in:
Hugo van Kemenade 2024-04-07 00:18:58 +03:00 committed by GitHub
commit 38f4c7ba5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ def test_sanity() -> None:
assert data[0] == (20, 20, 70)
def test_roundtrip() -> None:
def test_mode() -> None:
def getdata(mode: str) -> tuple[float | tuple[int, ...], int, int]:
im = hopper(mode).resize((32, 30), Image.Resampling.NEAREST)
data = im.getdata()