On 1 May 2010 14:10, Stefan Behnel <[email protected]> wrote: > Hi Lisandro, > > I get this in Py2.4 after your last commit. Can you take a look? >
Is that machine a 64bits one? In such case, the test is broken, because of this line: SSIZE_T_MAX = <ssize_t>((<size_t>-1)>>1) I've pushed a quick fix: http://hg.cython.org/cython-devel/rev/66bc28d5c751 PS: Can you see now why I was no so happy about using Py_ssize_t? Do you think that my original way of defining SSIZE_T_MAX was a nonsense? We should not enforce ssize_t meaning Py_ssize_t, but in case we do it anyway, we should provide users a last chance to change our decision (i.e, add an indirection and #define __Pyx_ssize_t Py_ssize_t). > > > Traceback (most recent call last): > File > "/home/scoder/hudson/jobs/py24-svn/workspace/INSTALL/py24/lib/python2.4/doctest.py", > line 2157, in runTest > raise self.failureException(self.format_failure(new.getvalue())) > AssertionError: Failed doctest test for ssize_t_T399 > File > "/mnt/usb1/scratch/hudson/jobs/cython-devel-tests-py24-c/workspace/BUILD/run/c/ssize_t_T399.so", > line 27, in ssize_t_T399 > > ---------------------------------------------------------------------- > File > "/mnt/usb1/scratch/hudson/jobs/cython-devel-tests-py24-c/workspace/BUILD/run/c/ssize_t_T399.so", > line 45, in ssize_t_T399 > Failed example: > test(SSIZE_T_MAX+1) #doctest: +ELLIPSIS > Expected: > Traceback (most recent call last): > ... > OverflowError: ... > Got: > 0 > ---------------------------------------------------------------------- > File > "/mnt/usb1/scratch/hudson/jobs/cython-devel-tests-py24-c/workspace/BUILD/run/c/ssize_t_T399.so", > line 49, in ssize_t_T399 > Failed example: > test(SSIZE_T_MIN-1) #doctest: +ELLIPSIS > Expected: > Traceback (most recent call last): > ... > OverflowError: ... > Got: > -1 > > -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
