Reset limit in tearDown()

This commit is contained in:
hugovk 2014-06-23 11:22:25 +03:00
parent 7b3e242f09
commit 282281f1e5

View File

@ -4,9 +4,14 @@ from PIL import Image
test_file = "Images/lena.ppm"
ORIGINAL_LIMIT = Image.MAX_IMAGE_PIXELS
class TestDecompressionBomb(PillowTestCase):
def tearDown(self):
Image.MAX_IMAGE_PIXELS = ORIGINAL_LIMIT
def test_no_warning_small_file(self):
# Implicit assert: no warning.
# A warning would cause a failure.