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