Merge pull request #2188 from jdufresne/unclosed-files

Remove unused, open files at top level of tests.
This commit is contained in:
Hugo 2016-11-01 19:05:51 +02:00 committed by GitHub
commit 4b663f32f7
6 changed files with 0 additions and 6 deletions

View File

@ -6,7 +6,6 @@ from PIL import Image, FliImagePlugin
# created as an export of a palette image from Gimp2.6
# save as...-> hopper.fli, default options.
test_file = "Tests/images/hopper.fli"
data = open(test_file, "rb").read()
class TestFileFli(PillowTestCase):

View File

@ -6,7 +6,6 @@ import sys
# sample icon file
TEST_FILE = "Tests/images/pillow.icns"
data = open(TEST_FILE, "rb").read()
enable_jpeg2k = hasattr(Image.core, 'jp2klib_version')

View File

@ -5,7 +5,6 @@ from PIL import Image, IcoImagePlugin
# sample ppm stream
TEST_ICO_FILE = "Tests/images/hopper.ico"
TEST_DATA = open(TEST_ICO_FILE, "rb").read()
class TestFileIco(PillowTestCase):

View File

@ -12,7 +12,6 @@ codecs = dir(Image.core)
# sample png stream
TEST_PNG_FILE = "Tests/images/hopper.png"
TEST_DATA = open(TEST_PNG_FILE, "rb").read()
# stuff to create inline PNG images

View File

@ -4,7 +4,6 @@ from PIL import Image
# sample ppm stream
test_file = "Tests/images/hopper.ppm"
data = open(test_file, "rb").read()
class TestFilePpm(PillowTestCase):

View File

@ -4,7 +4,6 @@ from PIL import Image, PsdImagePlugin
# sample ppm stream
test_file = "Tests/images/hopper.psd"
data = open(test_file, "rb").read()
class TestImagePsd(PillowTestCase):