merge error

This commit is contained in:
Eric Soroos 2017-12-20 11:45:52 +00:00
parent 25d961238c
commit a96ac321d5

View File

@ -53,7 +53,8 @@ class TestFilePng(PillowTestCase):
chunks = []
with open(filename, "rb") as fp:
fp.read(8)
while PngImagePlugin.PngStream(fp) as png:
with PngImagePlugin.PngStream(fp) as png:
while True:
cid, pos, length = png.read()
chunks.append(cid)
try: