mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Remove unnecessary skip test logic
The gif_encoder and gif_decoder are always compiled and included in src/_imaging.c.
This commit is contained in:
parent
2d4b4576aa
commit
967f46d1d8
|
@ -20,8 +20,6 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAVE_WEBP = False
|
HAVE_WEBP = False
|
||||||
|
|
||||||
codecs = dir(Image.core)
|
|
||||||
|
|
||||||
# sample gif stream
|
# sample gif stream
|
||||||
TEST_GIF = "Tests/images/hopper.gif"
|
TEST_GIF = "Tests/images/hopper.gif"
|
||||||
|
|
||||||
|
@ -30,10 +28,6 @@ with open(TEST_GIF, "rb") as f:
|
||||||
|
|
||||||
|
|
||||||
class TestFileGif(PillowTestCase):
|
class TestFileGif(PillowTestCase):
|
||||||
def setUp(self):
|
|
||||||
if "gif_encoder" not in codecs or "gif_decoder" not in codecs:
|
|
||||||
self.skipTest("gif support not available") # can this happen?
|
|
||||||
|
|
||||||
def test_sanity(self):
|
def test_sanity(self):
|
||||||
with Image.open(TEST_GIF) as im:
|
with Image.open(TEST_GIF) as im:
|
||||||
im.load()
|
im.load()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user