From 1c5116d43fb33c432f0e542db399804f6ccb06b3 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 7 May 2025 11:53:04 +1000 Subject: [PATCH] Simplified code --- Tests/test_file_dds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/test_file_dds.py b/Tests/test_file_dds.py index 866220800..5c7a943b1 100644 --- a/Tests/test_file_dds.py +++ b/Tests/test_file_dds.py @@ -525,6 +525,6 @@ def test_save_dx10_bc5(tmp_path: Path) -> None: ), ) def test_save_large_file(tmp_path: Path, pixel_format: str, mode: str) -> None: - with hopper(mode).resize((440, 440)) as im: - # should not error in valgrind - im.save(tmp_path / "img.dds", "DDS", pixel_format=pixel_format) + im = hopper(mode).resize((440, 440)) + # should not error in valgrind + im.save(tmp_path / "img.dds", pixel_format=pixel_format)