mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
merge error
This commit is contained in:
parent
25d961238c
commit
a96ac321d5
|
@ -53,14 +53,15 @@ class TestFilePng(PillowTestCase):
|
||||||
chunks = []
|
chunks = []
|
||||||
with open(filename, "rb") as fp:
|
with open(filename, "rb") as fp:
|
||||||
fp.read(8)
|
fp.read(8)
|
||||||
while PngImagePlugin.PngStream(fp) as png:
|
with PngImagePlugin.PngStream(fp) as png:
|
||||||
cid, pos, length = png.read()
|
while True:
|
||||||
chunks.append(cid)
|
cid, pos, length = png.read()
|
||||||
try:
|
chunks.append(cid)
|
||||||
s = png.call(cid, pos, length)
|
try:
|
||||||
except EOFError:
|
s = png.call(cid, pos, length)
|
||||||
break
|
except EOFError:
|
||||||
png.crc(cid, s)
|
break
|
||||||
|
png.crc(cid, s)
|
||||||
return chunks
|
return chunks
|
||||||
|
|
||||||
def test_sanity(self):
|
def test_sanity(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user