mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge pull request #5244 from radarhere/unclosed_file
Fixed unclosed file warning
This commit is contained in:
commit
31f3f8f793
|
@ -571,8 +571,8 @@ class TestFilePng:
|
|||
assert len(chunks) == 3
|
||||
|
||||
def test_read_private_chunks(self):
|
||||
im = Image.open("Tests/images/exif.png")
|
||||
assert im.private_chunks == [(b"orNT", b"\x01")]
|
||||
with Image.open("Tests/images/exif.png") as im:
|
||||
assert im.private_chunks == [(b"orNT", b"\x01")]
|
||||
|
||||
def test_roundtrip_private_chunk(self):
|
||||
# Check private chunk roundtripping
|
||||
|
|
Loading…
Reference in New Issue
Block a user