[Cython] bytearray tests fail with default unsigned char
stefan_ml at behnel.de
Thu Jan 23 19:19:21 CET 2014
Julian Taylor, 22.01.2014 00:03:
> the bytearray tests are broken when chars are unsigned.
> tests/run/bytearraymethods.pyx defines following function:
> def bytearray_append(b, char c, int i, object o):
> this gets converted to an effective __Pyx_PyInt_AsUnsignedChar which
> then errors out when -1 is passed in.
> chars are unsigned like they are by default on arm, s390x and powerpc.
> This causes a couple build failures in debian:
> the tests can be fixed by adding signed char to the interface.
Thanks for the report. You're right, testing with 'signed char' is better here.
More information about the cython-devel