Commit 8e7406a0 authored by Stefan Behnel's avatar Stefan Behnel

Work around some PyPy test issues.

parent f375c87a
......@@ -28,10 +28,9 @@ def test_constructor_kwds(x, y, color):
"""
>>> sorted(test_constructor_kwds(1.25, 2.5, 128).items())
[('color', 128), ('x', 1.25), ('y', 2.5)]
>>> test_constructor_kwds(1.25, 2.5, None)
>>> test_constructor_kwds(1.25, 2.5, None) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
TypeError: an integer is required
TypeError:... int...
"""
cdef Point p = Point(x=x, y=y, color=color)
return p
......@@ -41,10 +40,9 @@ def return_constructor_kwds(double x, y, color):
"""
>>> sorted(return_constructor_kwds(1.25, 2.5, 128).items())
[('color', 128), ('x', 1.25), ('y', 2.5)]
>>> return_constructor_kwds(1.25, 2.5, None)
>>> return_constructor_kwds(1.25, 2.5, None) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
TypeError: an integer is required
TypeError:... int...
"""
return Point(x=x, y=y, color=color)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment