Skip to content

Commit d6c6eec

Browse files
committed
Fixed catching warning, as per python-pillow#8505
1 parent 176fcd9 commit d6c6eec

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
@@ -188,6 +188,8 @@ def test_no_resource_warning(self, tmp_path: Path) -> None:
188188
with Image.open(TEST_AVIF_FILE) as im:
189189
temp_file = str(tmp_path / "temp.avif")
190190
with warnings.catch_warnings():
191+
warnings.simplefilter("error")
192+
191193
im.save(temp_file)
192194

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

0 commit comments

Comments
 (0)