mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Update test_file_gif.py
remove warning
This commit is contained in:
parent
d78371cccd
commit
65266a7419
|
@ -9,7 +9,8 @@ if "gif_encoder" not in codecs or "gif_decoder" not in codecs:
|
|||
|
||||
# sample gif stream
|
||||
file = "Images/lena.gif"
|
||||
data = open(file, "rb").read()
|
||||
with open(file, "rb") as f:
|
||||
data = f.read()
|
||||
|
||||
def test_sanity():
|
||||
im = Image.open(file)
|
||||
|
|
Loading…
Reference in New Issue
Block a user