mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-05 13:43:28 +03:00
sort colors before comparing them
This commit is contained in:
parent
48b6d4fd60
commit
04199b6066
|
@ -178,11 +178,13 @@ class TestImageTransform:
|
||||||
|
|
||||||
im = op(im, (40, 10))
|
im = op(im, (40, 10))
|
||||||
|
|
||||||
colors = im.getcolors()
|
colors = sorted(im.getcolors())
|
||||||
assert colors == [
|
assert colors == sorted(
|
||||||
|
(
|
||||||
(20 * 10, opaque),
|
(20 * 10, opaque),
|
||||||
(20 * 10, transparent),
|
(20 * 10, transparent),
|
||||||
]
|
)
|
||||||
|
)
|
||||||
|
|
||||||
@pytest.mark.parametrize("mode", ("RGBA", "LA"))
|
@pytest.mark.parametrize("mode", ("RGBA", "LA"))
|
||||||
def test_nearest_resize(self, mode):
|
def test_nearest_resize(self, mode):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user