Close image after assert

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2025-06-27 16:17:20 +03:00 committed by GitHub
parent 6aff8fcc18
commit 958c449b98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -752,6 +752,8 @@ class TestFileJpeg:
# Assert
assert im.format == "JPEG"
im.close()
@pytest.mark.parametrize("mode", ("1", "L", "RGB", "RGBX", "CMYK", "YCbCr"))
def test_save_correct_modes(self, mode: str) -> None:
out = BytesIO()