Skip to content

Commit 958c449

Browse files
hugovkradarhere
andauthored
Close image after assert
Co-authored-by: Andrew Murray <[email protected]>
1 parent 6aff8fc commit 958c449

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/test_file_jpeg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ def test_bad_mpo_header(self) -> None:
752752
# Assert
753753
assert im.format == "JPEG"
754754

755+
im.close()
756+
755757
@pytest.mark.parametrize("mode", ("1", "L", "RGB", "RGBX", "CMYK", "YCbCr"))
756758
def test_save_correct_modes(self, mode: str) -> None:
757759
out = BytesIO()

0 commit comments

Comments
 (0)