[Cython] failing memory view tests in Python 2.4/5

mark florisson markflorisson88 at gmail.com
Tue Jul 10 11:20:07 CEST 2012


On 10 July 2012 08:24, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Hi,
>
> I've fixed some of the errors that current block the tests. The remaining
> failures in the memory view tests exist in both Py2.4 and 2.5, which hints
> at a problem with the buffer support in numpy.pxd.
>
> https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/BACKEND=c,PYVERSION=py25-ext/504/testReport/
>
> The memslice test failure is annoying. It looks like slice() fails to
> properly deep-copy in Py2.[45]. I don't know if we can do anything about
> this, seems more like a CPython bug. Deep copying is used to split function
> definitions for fused types and I guess slice objects are used in
> combination with the memory slices. So both don't currently work together
> in Py2.[45].

I'm pretty sure I fixed the slice copying problem through a
__deepcopy__ overload a long time ago elsewhere. I don't think these
tests should be excluded from the test run yet. Perhaps we should run
the 2x tests from py27 down to 2.4. Tests in newer python's are less
likely to fail.

Do you want _refactor_indexnode merged for this release?

> I'd like to release a 0.17 alpha soon, so please get these sorted out in
> one way or another ASAP. I'm also fine with declaring these features
> unusable in older Python releases if we can't fix them, but it would
> obviously be better to get them working.

I'll try to find some time this week.

> Stefan
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel


More information about the cython-devel mailing list