compare colors as sets rather than lists

This commit is contained in:
Yay295 2022-08-26 23:46:41 -05:00
parent b178d1621a
commit dc172ad183

View File

@ -173,10 +173,10 @@ class TestImageTransform:
im = op(im, (40, 10))
colors = im.getcolors()
assert colors == [
assert set(colors) == {
(20 * 10, opaque),
(20 * 10, transparent),
]
}
@pytest.mark.parametrize("mode", ("RGBA", "LA"))
def test_nearest_resize(self, mode):