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

Disable test in Py2.6.

parent 13eb4498
......@@ -37,6 +37,13 @@ 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])
......@@ -74,6 +81,7 @@ 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])
......
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