Cleanup .spider extension registered by test code during save

This commit is contained in:
Andrew Murray 2026-01-19 17:18:30 +11:00
parent 1baf141146
commit 9c8059fdea

View File

@ -14,6 +14,10 @@ from .helper import assert_image_equal, hopper, is_pypy
TEST_FILE = "Tests/images/hopper.spider"
def teardown_module() -> None:
del Image.EXTENSION[".spider"]
def test_sanity() -> None:
with Image.open(TEST_FILE) as im:
im.load()