Fix test broken by removal of imghdr

This has been broken since bd11564579.
This commit is contained in:
Colin Watson 2024-11-06 02:32:34 +00:00 committed by Lonami
parent 769b65efb1
commit 70098c58a5

View File

@ -34,9 +34,6 @@ def test_private_get_extension():
assert utils._get_extension('foo.bar.baz') == '.baz' assert utils._get_extension('foo.bar.baz') == '.baz'
assert utils._get_extension(pathlib.Path('foo.bar.baz')) == '.baz' assert utils._get_extension(pathlib.Path('foo.bar.baz')) == '.baz'
assert utils._get_extension(png_header) == '.png'
assert utils._get_extension(png_buffer) == '.png'
assert utils._get_extension(png_buffer) == '.png' # make sure it did seek back
assert utils._get_extension(CustomFd('foo.bar.baz')) == '.baz' assert utils._get_extension(CustomFd('foo.bar.baz')) == '.baz'
# Negative cases # Negative cases