mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-21 17:06:36 +03:00
Fix test broken by removal of imghdr
This has been broken since bd11564579
.
This commit is contained in:
parent
769b65efb1
commit
70098c58a5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user