Skip to content

Commit 148745f

Browse files
committed
Fixed catching warning, as per python-pillow#8505
1 parent e9449ef commit 148745f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/test_file_avif.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ def finish(self) -> None:
182182
def test_no_resource_warning(self, tmp_path: Path) -> None:
183183
with Image.open(TEST_AVIF_FILE) as im:
184184
with warnings.catch_warnings():
185+
warnings.simplefilter("error")
186+
185187
im.save(tmp_path / "temp.avif")
186188

187189
@pytest.mark.parametrize("major_brand", [b"avif", b"avis", b"mif1", b"msf1"])

0 commit comments

Comments
 (0)