mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 17:24:46 +03:00
compare colors as sets rather than lists
This commit is contained in:
parent
b178d1621a
commit
dc172ad183
|
@ -173,10 +173,10 @@ class TestImageTransform:
|
||||||
im = op(im, (40, 10))
|
im = op(im, (40, 10))
|
||||||
|
|
||||||
colors = im.getcolors()
|
colors = im.getcolors()
|
||||||
assert colors == [
|
assert set(colors) == {
|
||||||
(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