summaryrefslogtreecommitdiff
path: root/tests/memoryview/relaxed_strides.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/memoryview/relaxed_strides.pyx')
-rw-r--r--tests/memoryview/relaxed_strides.pyx14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/memoryview/relaxed_strides.pyx b/tests/memoryview/relaxed_strides.pyx
index 1743f23d0..6f90f4db5 100644
--- a/tests/memoryview/relaxed_strides.pyx
+++ b/tests/memoryview/relaxed_strides.pyx
@@ -10,12 +10,12 @@ Thanks to Nathaniel Smith and Sebastian Berg.
See also:
Mailing list threads:
- http://thread.gmane.org/gmane.comp.python.cython.devel/14762
- http://thread.gmane.org/gmane.comp.python.cython.devel/14634
+ https://thread.gmane.org/gmane.comp.python.cython.devel/14762
+ https://thread.gmane.org/gmane.comp.python.cython.devel/14634
Detailed discussion of the difference between numpy/cython's current
definition of "contiguity", and the correct definition:
- http://thread.gmane.org/gmane.comp.python.cython.devel/14634/focus=14640
+ https://thread.gmane.org/gmane.comp.python.cython.devel/14634/focus=14640
The PR implementing NPY_RELAXED_STRIDES_CHECKING:
https://github.com/numpy/numpy/pull/3162
@@ -37,13 +37,6 @@ NUMPY_HAS_RELAXED_STRIDES = (
np.ones((10, 1), order="C").flags.f_contiguous)
-def not_py26(f):
- import sys
- if sys.version_info < (2, 7):
- return lambda a: None
- return f
-
-
def test_one_sized(array):
"""
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[::100])
@@ -81,7 +74,6 @@ def test_zero_sized_multidim_ccontig(array):
cdef double[:, :, ::1] a = array
return a
-@not_py26
def test_zero_sized_multidim_fcontig(array):
"""
>>> contig = np.ascontiguousarray(np.zeros((4,4,4))[::2, 2:2, ::2])