From dc172ad1834e84b1ba1b8499dfb67f2411b505c8 Mon Sep 17 00:00:00 2001 From: Yay295 Date: Fri, 26 Aug 2022 23:46:41 -0500 Subject: [PATCH] compare colors as sets rather than lists --- Tests/test_image_transform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_image_transform.py b/Tests/test_image_transform.py index ac0e74969..d55f2027d 100644 --- a/Tests/test_image_transform.py +++ b/Tests/test_image_transform.py @@ -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):