Simplify: remove class

This commit is contained in:
Hugo van Kemenade 2020-12-18 11:12:04 +02:00
parent 9e3ad5e997
commit 2b319f2ce4

View File

@ -6,8 +6,7 @@ import pytest
from PIL import Image, ImagePath
class TestImagePath:
def test_path(self):
def test_path():
p = ImagePath.Path(list(range(10)))
@ -64,7 +63,8 @@ class TestImagePath:
p = ImagePath.Path(arr.tostring())
assert list(p) == [(0.0, 1.0)]
def test_overflow_segfault(self):
def test_overflow_segfault():
# Some Pythons fail getting the argument as an integer, and it falls
# through to the sequence. Seeing this on 32-bit Windows.
with pytest.raises((TypeError, MemoryError)):