Commit 1d98fd4a authored by Lisandro Dalcin's avatar Lisandro Dalcin

AppVeyor: Fix failing tests

parent 7df80dec
...@@ -185,9 +185,9 @@ def py_div_long(long a, long b): ...@@ -185,9 +185,9 @@ def py_div_long(long a, long b):
5 5
>>> import sys >>> import sys
>>> maxint = getattr(sys, ((sys.version_info[0] >= 3) and 'maxsize' or 'maxint')) >>> maxint = getattr(sys, ((sys.version_info[0] >= 3) and 'maxsize' or 'maxint'))
>>> py_div_long(-maxint-1, -1) >>> py_div_long(-maxint-1, -1) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
OverflowError: value too large to perform division OverflowError: ...
""" """
return a / b return a / b
...@@ -2,18 +2,18 @@ from cython cimport typeof ...@@ -2,18 +2,18 @@ from cython cimport typeof
def test(ptrdiff_t i): def test(ptrdiff_t i):
""" """
>>> test(0) >>> int(test(0))
0 0
>>> test(1) >>> int(test(1))
1 1
>>> test(2) >>> int(test(2))
2 2
>>> test(-1) >>> int(test(-1))
-1 -1
>>> test(-2) >>> int(test(-2))
-2 -2
>>> str(test((1<<31)-1)) >>> int(test((1<<31)-1))
'2147483647' 2147483647
""" """
return i return i
......
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