Reset MAX_IMAGE_PIXELS after each test to allow for random test order

This commit is contained in:
Andrew Murray 2021-06-10 13:17:57 +10:00
parent 61b9065a25
commit d99a6ff862

View File

@ -10,8 +10,7 @@ ORIGINAL_LIMIT = Image.MAX_IMAGE_PIXELS
class TestDecompressionBomb:
@classmethod
def teardown_class(cls):
def teardown_method(self, method):
Image.MAX_IMAGE_PIXELS = ORIGINAL_LIMIT
def test_no_warning_small_file(self):