Skip to content
Snippets Groups Projects
Commit e5b7b3d38d0c authored by Stefan Behnel's avatar Stefan Behnel
Browse files

Disable test in Py2.6.

parent 133ee7b17ff1
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,13 @@
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 @@
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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment