[Cython] "relaxed_strides" test broken with NumPy 1.8

Nathaniel Smith njs at pobox.com
Sun Jan 5 02:07:04 CET 2014


No, I'm missing something now; AFAIK there are only two numpy behaviors:
with relaxed strides and without relaxed strides, and version number should
be irrelevant beyond that. What's different between
1.8-without-relaxed-strides and 1.7 that makes the test break?
On 4 Jan 2014 22:01, "Stefan Behnel" <stefan_ml at behnel.de> wrote:

> 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
>
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20140104/8879f9ff/attachment.html>


More information about the cython-devel mailing list