mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +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
|
||||
|
||||
|
||||
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)):
|
||||
|
|
Loading…
Reference in New Issue
Block a user