Commit a95d8f91 authored by Stefan Behnel's avatar Stefan Behnel

re-enable relaxed_strides test for pre-1.8 NumPy versions

parent e1982505
......@@ -26,8 +26,15 @@ See also:
import numpy as np
NUMPY_HAS_RELAXED_STRIDES = np.ones((10, 1), order="C").flags.f_contiguous
numpy_version = np.__version__.split('.')[:2]
try:
numpy_version = tuple(map(int, numpy_version))
except ValueError:
numpy_version = (20, 0)
NUMPY_HAS_RELAXED_STRIDES = (
numpy_version < (1, 8) or
np.ones((10, 1), order="C").flags.f_contiguous)
def test_one_sized(array):
......
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