mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Manually merge radarhere's additional tests
This commit is contained in:
parent
88f46f3c99
commit
48f763a378
|
@ -28,8 +28,11 @@ def test_sanity():
|
||||||
im.point(lambda x: (2 + x) / 3)
|
im.point(lambda x: (2 + x) / 3)
|
||||||
im.point(lambda x: 0.5)
|
im.point(lambda x: 0.5)
|
||||||
im.point(lambda x: x / 1)
|
im.point(lambda x: x / 1)
|
||||||
|
im.point(lambda x: x + x)
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
im.point(lambda x: x * x)
|
im.point(lambda x: x * x)
|
||||||
|
with pytest.raises(TypeError):
|
||||||
|
im.point(lambda x: x / x)
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
im.point(lambda x: 1 / x)
|
im.point(lambda x: 1 / x)
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user