Commit 6fa71c3f authored by Stefan Behnel's avatar Stefan Behnel

Prevent test from depending on repr(long) in Py2.

parent e1eb0a1c
...@@ -19,7 +19,7 @@ cnp.import_array() ...@@ -19,7 +19,7 @@ cnp.import_array()
) )
def access_shape(): def access_shape():
""" """
>>> access_shape() >>> print(access_shape())
10 10
""" """
cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \ cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \
...@@ -37,7 +37,7 @@ def access_shape(): ...@@ -37,7 +37,7 @@ def access_shape():
) )
def access_size(): def access_size():
""" """
>>> access_size() >>> print(access_size())
100 100
""" """
cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \ cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \
...@@ -56,8 +56,11 @@ def access_size(): ...@@ -56,8 +56,11 @@ def access_size():
) )
def access_strides(): def access_strides():
""" """
>>> access_strides() >>> x, y = access_strides()
(80, 8) >>> print(x)
80
>>> print(y)
8
""" """
cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \ cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \
1e10 * np.ones((10, 10), dtype=np.float64) 1e10 * np.ones((10, 10), dtype=np.float64)
......
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