mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-09 15:05:48 +03:00
Ensure reset after test failure
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
parent
0b7fcbbc93
commit
1140f6538d
|
@ -992,9 +992,10 @@ class TestFileLibTiff(LibTiffTestCase):
|
|||
out = str(tmp_path / "temp.tif")
|
||||
|
||||
TiffImagePlugin.STRIP_SIZE = 2 ** 18
|
||||
try:
|
||||
|
||||
im.save(out, compression="tiff_adobe_deflate")
|
||||
|
||||
try:
|
||||
with Image.open(out) as im:
|
||||
assert len(im.tag_v2[STRIPOFFSETS]) == 1
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue
Block a user