mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
33dabf986f
The unittest in helper.py has not offered an interesting abstraction
since dbe9f85c7d
so import from the more
typical stdlib location.
20 lines
369 B
Python
20 lines
369 B
Python
import unittest
|
|
|
|
from PIL import Image
|
|
|
|
from .helper import PillowTestCase
|
|
|
|
TEST_FILE = "Tests/images/fli_overflow.fli"
|
|
|
|
|
|
class TestFliOverflow(PillowTestCase):
|
|
def test_fli_overflow(self):
|
|
|
|
# this should not crash with a malloc error or access violation
|
|
im = Image.open(TEST_FILE)
|
|
im.load()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|