From 4e6e69aafb9b0aabb98c42aab030b5b2254d302a Mon Sep 17 00:00:00 2001 From: Yay295 Date: Sun, 9 Oct 2022 02:55:01 -0500 Subject: [PATCH] remove loop left from before parametrization --- Tests/test_image_resample.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Tests/test_image_resample.py b/Tests/test_image_resample.py index 53ceb6df0..be49955dd 100644 --- a/Tests/test_image_resample.py +++ b/Tests/test_image_resample.py @@ -135,16 +135,15 @@ class TestImagingCoreResampleAccuracy: @pytest.mark.parametrize("mode", ("RGBX", "RGB", "La", "L")) def test_reduce_bicubic(self, mode): - for mode in ["RGBX", "RGB", "La", "L"]: - case = self.make_case(mode, (12, 12), 0xE1) - case = case.resize((6, 6), Image.Resampling.BICUBIC) - # fmt: off - data = ("e1 e3 d4" - "e3 e5 d6" - "d4 d6 c9") - # fmt: on - for channel in case.split(): - self.check_case(channel, self.make_sample(data, (6, 6))) + case = self.make_case(mode, (12, 12), 0xE1) + case = case.resize((6, 6), Image.Resampling.BICUBIC) + # fmt: off + data = ("e1 e3 d4" + "e3 e5 d6" + "d4 d6 c9") + # fmt: on + for channel in case.split(): + self.check_case(channel, self.make_sample(data, (6, 6))) @pytest.mark.parametrize("mode", ("RGBX", "RGB", "La", "L")) def test_reduce_lanczos(self, mode):