[Cython] "relaxed_strides" test broken with NumPy 1.8

Stefan Behnel stefan_ml at behnel.de
Sat Jan 4 23:01:30 CET 2014


Stefan Behnel, 04.01.2014 22:51:
> Stefan Behnel, 04.01.2014 22:47:
>> Nathaniel Smith, 04.01.2014 18:36:
>>> On 4 Jan 2014 17:07, "Robert Bradshaw" wrote:
>>>> Yes, that'd be good. Do you know how? I won't have time to look at this
>>> 'till next week.
>>>
>>> Something like
>>>
>>> if not np.ones((10, 1), order="C").flags.f_contiguous:
>>>   # numpy without relaxed stride support
>>>   raise SkipTest
>>
>> https://github.com/cython/cython/commit/e1982505564125714d2010391eecfb8de61626fa
> 
> Hmm, but this doesn't seem to work for me in older NumPy versions, although
> the original test used to work there. Should we explicitly test for NumPy
> 0.18+ as well?

(Looks like the Cython versioning scheme starts messing up my sense for
good versioning...)

I meant NumPy 1.8, 'obviously', i.e. this:

https://github.com/cython/cython/commit/a95d8f912c995300a13fc244ee71bc277668cb9a

Stefan



More information about the cython-devel mailing list