Skip to content

Commit

Permalink
Assert image type
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 9, 2025
1 parent 0572221 commit 68cbf93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/test_file_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@ def test_bigtiff_save(self, tmp_path: Path) -> None:
im.save(outfile, big_tiff=True)

with Image.open(outfile) as reloaded:
assert isinstance(reloaded, TiffImagePlugin.TiffImageFile)
assert reloaded.tag_v2._bigtiff is True

im.save(outfile, save_all=True, append_images=[im], big_tiff=True)

with Image.open(outfile) as reloaded:
assert isinstance(reloaded, TiffImagePlugin.TiffImageFile)
assert reloaded.tag_v2._bigtiff is True

def test_seek_too_large(self) -> None:
Expand Down

0 comments on commit 68cbf93

Please sign in to comment.