From d99a6ff8623d94d341ecc082e51a03db60f2e4ab Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 10 Jun 2021 13:17:57 +1000 Subject: [PATCH] Reset MAX_IMAGE_PIXELS after each test to allow for random test order --- Tests/test_decompression_bomb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/test_decompression_bomb.py b/Tests/test_decompression_bomb.py index db4313375..d918ef941 100644 --- a/Tests/test_decompression_bomb.py +++ b/Tests/test_decompression_bomb.py @@ -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):