diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-05 16:25:06 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-05 16:25:06 +0200 |
commit | 6fa71c3f8d934e61252e5ec5e722e82a4f5c9148 (patch) | |
tree | 375a332c67a5e184bd29e3bf8544ef8930f88c6f | |
parent | e1eb0a1cf972287d670e9640d735150349321253 (diff) | |
download | cython-6fa71c3f8d934e61252e5ec5e722e82a4f5c9148.tar.gz |
Prevent test from depending on repr(long) in Py2.
-rw-r--r-- | tests/run/numpy_attributes.pyx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/run/numpy_attributes.pyx b/tests/run/numpy_attributes.pyx index f4c1ba956..c77346a49 100644 --- a/tests/run/numpy_attributes.pyx +++ b/tests/run/numpy_attributes.pyx @@ -19,7 +19,7 @@ cnp.import_array() ) def access_shape(): """ - >>> access_shape() + >>> print(access_shape()) 10 """ cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \ @@ -37,7 +37,7 @@ def access_shape(): ) def access_size(): """ - >>> access_size() + >>> print(access_size()) 100 """ cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \ @@ -56,8 +56,11 @@ def access_size(): ) def access_strides(): """ - >>> access_strides() - (80, 8) + >>> x, y = access_strides() + >>> print(x) + 80 + >>> print(y) + 8 """ cdef cnp.ndarray[double, ndim=2, mode='c'] array_in = \ 1e10 * np.ones((10, 10), dtype=np.float64) |