mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Reset limit in tearDown()
This commit is contained in:
parent
7b3e242f09
commit
282281f1e5
|
@ -4,9 +4,14 @@ from PIL import Image
|
||||||
|
|
||||||
test_file = "Images/lena.ppm"
|
test_file = "Images/lena.ppm"
|
||||||
|
|
||||||
|
ORIGINAL_LIMIT = Image.MAX_IMAGE_PIXELS
|
||||||
|
|
||||||
|
|
||||||
class TestDecompressionBomb(PillowTestCase):
|
class TestDecompressionBomb(PillowTestCase):
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
Image.MAX_IMAGE_PIXELS = ORIGINAL_LIMIT
|
||||||
|
|
||||||
def test_no_warning_small_file(self):
|
def test_no_warning_small_file(self):
|
||||||
# Implicit assert: no warning.
|
# Implicit assert: no warning.
|
||||||
# A warning would cause a failure.
|
# A warning would cause a failure.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user