Lisandro Dalcin, 12.08.2010 20:08:
> I've mailed Stefan about this some time ago.
>
> I can reproduce this problem with
>
> - system Python 2.6.2 from Fedora 12 in Linux 32 bits
> - system Python 2.6.2 from Fedora 12 in Linux 64 bits
> - system Python 2.6.4 from Fedora 13 in Linux 32 bits
>
> but not with:
>
> - system Python 3.1.2 from Fedora 13 in Linux 32 bits
>
> In all cases, these system Pythons are wide unicode builds.
>
> Additionally, I DO NOT get the failure with custom, debug, short
> unicode Python builds from 2.3 to 3.2 on Linux 32.
>
> Any clue? Could this issue be very specific to Py2.6 + wide-unicode?
>
>
> ======================================================================
> FAIL: Doctest: unicodeliterals
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.6/doctest.py", line 2145, in runTest
> raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for unicodeliterals
> File "/u/dalcinl/Devel/Cython/cython-devel/BUILD/run/c/unicodeliterals.so",
> line 339, in unicodeliterals
>
> ----------------------------------------------------------------------
> File "/u/dalcinl/Devel/Cython/cython-devel/BUILD/run/c/unicodeliterals.so",
> line 408, in unicodeliterals
> Failed example:
> if wide_literal == expected: print(True)
> else: print(repr(wide_literal), repr(expected), sys.maxunicode)
> Expected:
> True
> Got:
> ("u'\\U00101234'", "u'\\udbc4\\ude34'", 1114111)
It shouldn't expect the surrogate pair but the single character string that
it actually gets, so it's the "expected" string that's broken here. Could
you check if the generated C code is the same on all systems? What does the
respective docstring part look like in the C code? Note that it is appended
to the string in the test code, I only need the short snippet above.
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev