From e42e000ecbfb53e0cb6205f4ad4f901a818c3787 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 17 Feb 2020 13:46:01 -0800 Subject: [PATCH] Remove unnecessary skip test logic The gif_encoder and gif_decoder are always compiled and included in src/_imaging.c. --- Tests/test_file_gif.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py index d9226cdba..380154581 100644 --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -20,8 +20,6 @@ try: except ImportError: HAVE_WEBP = False -codecs = dir(Image.core) - # sample gif stream TEST_GIF = "Tests/images/hopper.gif" @@ -30,10 +28,6 @@ with open(TEST_GIF, "rb") as f: 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): with Image.open(TEST_GIF) as im: im.load()