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:
Jon Dufresne 2020-02-17 13:46:01 -08:00
parent 2d4b4576aa
commit 967f46d1d8

View File

@ -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()