diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py index 22a2c0072..9d671561d 100644 --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -475,8 +475,6 @@ class TestFileGif(PillowTestCase): # that's > 128 items where the transparent color is actually # the top palette entry to trigger the bug. - from PIL import ImagePalette - data = bytes(bytearray(range(1, 254))) palette = ImagePalette.ImagePalette("RGB", list(range(256))*3) diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py index 747c3d7de..7b58fc426 100644 --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -576,7 +576,6 @@ class TestFileCloseW32(PillowTestCase): def test_fd_leak(self): tmpfile = self.tempfile("temp.jpg") - import os with Image.open("Tests/images/hopper.jpg") as im: im.save(tmpfile) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index 6edc94aed..393f4a7a4 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -388,7 +388,6 @@ class TestFileTiff(PillowTestCase): 'y_resolution': 36} filename = self.tempfile("temp.tif") hopper("RGB").save(filename, **kwargs) - from PIL.TiffImagePlugin import X_RESOLUTION, Y_RESOLUTION im = Image.open(filename) # legacy interface