mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Reset MAX_IMAGE_PIXELS after each test to allow for random test order
This commit is contained in:
parent
61b9065a25
commit
d99a6ff862
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user