mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +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))
|
||||
|
||||
colors = im.getcolors()
|
||||
assert colors == [
|
||||
colors = sorted(im.getcolors())
|
||||
assert colors == sorted(
|
||||
(
|
||||
(20 * 10, opaque),
|
||||
(20 * 10, transparent),
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
@pytest.mark.parametrize("mode", ("RGBA", "LA"))
|
||||
def test_nearest_resize(self, mode):
|
||||
|
|
Loading…
Reference in New Issue
Block a user