Merge pull request #7967 from Yay295/patch-1

Fix test error message grammar
This commit is contained in:
Hugo van Kemenade 2024-04-12 00:53:22 +03:00 committed by GitHub
commit de18f55568
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,7 +284,7 @@ class TestCoreResampleAlphaCorrect:
used_colors = {px[x, y][0] for x in range(i.size[0])} used_colors = {px[x, y][0] for x in range(i.size[0])}
assert 256 == len(used_colors), ( assert 256 == len(used_colors), (
"All colors should be present in resized image. " "All colors should be present in resized image. "
f"Only {len(used_colors)} on {y} line." f"Only {len(used_colors)} on line {y}."
) )
@pytest.mark.xfail(reason="Current implementation isn't precise enough") @pytest.mark.xfail(reason="Current implementation isn't precise enough")