diff --git a/Tests/images/mode-l.dds b/Tests/images/mode-l.dds deleted file mode 100644 index b82282587ec..00000000000 Binary files a/Tests/images/mode-l.dds and /dev/null differ diff --git a/Tests/images/mode-la.dds b/Tests/images/mode-la.dds deleted file mode 100644 index 30bf93576fd..00000000000 Binary files a/Tests/images/mode-la.dds and /dev/null differ diff --git a/Tests/images/mode-la.png b/Tests/images/mode-la.png deleted file mode 100644 index 0d4ea602fc3..00000000000 Binary files a/Tests/images/mode-la.png and /dev/null differ diff --git a/Tests/images/mode-rgb.dds b/Tests/images/mode-rgb.dds deleted file mode 100644 index ad0e630b479..00000000000 Binary files a/Tests/images/mode-rgb.dds and /dev/null differ diff --git a/Tests/images/mode-rgb.png b/Tests/images/mode-rgb.png deleted file mode 100644 index d0de36d82a9..00000000000 Binary files a/Tests/images/mode-rgb.png and /dev/null differ diff --git a/Tests/images/mode-rgba.dds b/Tests/images/mode-rgba.dds deleted file mode 100644 index d4808ca68ea..00000000000 Binary files a/Tests/images/mode-rgba.dds and /dev/null differ diff --git a/Tests/images/mode-rgba.png b/Tests/images/mode-rgba.png deleted file mode 100644 index 33b41a54726..00000000000 Binary files a/Tests/images/mode-rgba.png and /dev/null differ diff --git a/Tests/images/mode-l.png b/Tests/images/rgb8.png similarity index 100% rename from Tests/images/mode-l.png rename to Tests/images/rgb8.png diff --git a/Tests/test_file_dds.py b/Tests/test_file_dds.py index b33c01a203a..da7260cbf3b 100644 --- a/Tests/test_file_dds.py +++ b/Tests/test_file_dds.py @@ -350,25 +350,10 @@ def test_save_unsupported_mode(tmp_path): im.save(out) -@pytest.mark.parametrize( - ("mode", "test_file"), - ( - ("L", "Tests/images/mode-l.dds"), - ("LA", "Tests/images/mode-la.dds"), - ("RGB", "Tests/images/mode-rgb.dds"), - ("RGBA", "Tests/images/mode-rgba.dds"), - ), -) -def test_open(mode, test_file): - with Image.open(test_file) as im: - assert im.mode == mode - assert_image_equal_tofile(im, test_file.replace(".dds", ".png")) - - def test_open_rgb8(): with Image.open("Tests/images/rgb8.dds") as im: assert im.mode == "L" - assert_image_equal_tofile(im, "Tests/images/mode-l.png") + assert_image_equal_tofile(im, "Tests/images/rgb8.png") @pytest.mark.parametrize(