mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-02 23:13:40 +03:00
Simplify: remove class
This commit is contained in:
parent
9e3ad5e997
commit
2b319f2ce4
|
@ -6,8 +6,7 @@ import pytest
|
||||||
from PIL import Image, ImagePath
|
from PIL import Image, ImagePath
|
||||||
|
|
||||||
|
|
||||||
class TestImagePath:
|
def test_path():
|
||||||
def test_path(self):
|
|
||||||
|
|
||||||
p = ImagePath.Path(list(range(10)))
|
p = ImagePath.Path(list(range(10)))
|
||||||
|
|
||||||
|
@ -64,7 +63,8 @@ class TestImagePath:
|
||||||
p = ImagePath.Path(arr.tostring())
|
p = ImagePath.Path(arr.tostring())
|
||||||
assert list(p) == [(0.0, 1.0)]
|
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
|
# Some Pythons fail getting the argument as an integer, and it falls
|
||||||
# through to the sequence. Seeing this on 32-bit Windows.
|
# through to the sequence. Seeing this on 32-bit Windows.
|
||||||
with pytest.raises((TypeError, MemoryError)):
|
with pytest.raises((TypeError, MemoryError)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user