mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-22 22:19:46 +03:00
Close image after assert
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
6aff8fcc18
commit
958c449b98
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user