| ests/images/crash-63b1dffefc8c075ddc606c0a2f5fdc15ece78863.tif", |
| "Tests/images/crash-74d2a78403a5a59db1fb0a2b8735ac068a75f6e3.tif", |
| "Tests/images/crash-81154a65438ba5aaeca73fd502fa4850fbde60f8.tif", |
| "Tests/images/crash-0da013a13571cc8eb457a39fee8db18f8a3c7127.tif", |
| ], |
| ) |
| @pytest.mark.filterwarnings("ignore:Possibly corrupt EXIF data") |
| @pytest.mark.filterwarnings("ignore:Metadata warning") |
| @pytest.mark.filterwarnings("ignore:Truncated File Read") |
| def test_tiff_crashes(test_file): |
| try: |
| with Image.open(test_file) as im: |
| im.load() |
| except FileNotFoundError: |
| if not on_ci(): |
| pytest.skip("test image not found") |
| return |
| raise |
| except OSError: |
| pass |
|
|