mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Added test
This commit is contained in:
parent
e4b9f88de4
commit
11cb3fba9c
|
@ -23,6 +23,13 @@ def test_overflow():
|
||||||
Image.MAX_IMAGE_PIXELS = max_pixels
|
Image.MAX_IMAGE_PIXELS = max_pixels
|
||||||
|
|
||||||
|
|
||||||
|
def test_tobytes():
|
||||||
|
# Previously raised an access violation on Windows
|
||||||
|
with Image.open("Tests/images/l2rgb_read.bmp") as im:
|
||||||
|
with pytest.raises((ValueError, MemoryError, OSError)):
|
||||||
|
im.tobytes()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(sys.maxsize <= 2 ** 32, reason="Requires 64-bit system")
|
@pytest.mark.skipif(sys.maxsize <= 2 ** 32, reason="Requires 64-bit system")
|
||||||
def test_ysize():
|
def test_ysize():
|
||||||
numpy = pytest.importorskip("numpy", reason="NumPy not installed")
|
numpy = pytest.importorskip("numpy", reason="NumPy not installed")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user