mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Refactor inheritance tree of test_file_libtiff_small
This commit is contained in:
parent
0c94adc538
commit
3e361d800d
|
@ -4,8 +4,7 @@ import os
|
||||||
|
|
||||||
from PIL import Image, TiffImagePlugin
|
from PIL import Image, TiffImagePlugin
|
||||||
|
|
||||||
|
class LibTiffTestCase(PillowTestCase):
|
||||||
class TestFileLibTiff(PillowTestCase):
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
codecs = dir(Image.core)
|
codecs = dir(Image.core)
|
||||||
|
@ -32,6 +31,8 @@ class TestFileLibTiff(PillowTestCase):
|
||||||
out = self.tempfile("temp.png")
|
out = self.tempfile("temp.png")
|
||||||
im.save(out)
|
im.save(out)
|
||||||
|
|
||||||
|
class TestFileLibTiff(LibTiffTestCase):
|
||||||
|
|
||||||
def test_g4_tiff(self):
|
def test_g4_tiff(self):
|
||||||
"""Test the ordinary file path load path"""
|
"""Test the ordinary file path load path"""
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,10 @@ from helper import unittest
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from test_file_libtiff import TestFileLibTiff
|
from test_file_libtiff import LibTiffTestCase
|
||||||
|
|
||||||
|
|
||||||
class TestFileLibTiffSmall(TestFileLibTiff):
|
class TestFileLibTiffSmall(LibTiffTestCase):
|
||||||
|
|
||||||
# Inherits TestFileLibTiff's setUp() and self._assert_noerr()
|
|
||||||
|
|
||||||
""" The small lena image was failing on open in the libtiff
|
""" The small lena image was failing on open in the libtiff
|
||||||
decoder because the file pointer was set to the wrong place
|
decoder because the file pointer was set to the wrong place
|
||||||
|
|
Loading…
Reference in New Issue
Block a user