From: Stefan Behnel Date: Sat, 17 Jul 2010 14:03:36 +0000 (+0200) Subject: test fix for Py<=2.5 X-Git-Tag: 0.13.beta0~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d75f7385a031944801f62822af8f4cdd0a371e24;p=cython.git test fix for Py<=2.5 --- diff --git a/tests/run/unicodeliterals.pyx b/tests/run/unicodeliterals.pyx index cdb4c8a8..9e7c57f8 100644 --- a/tests/run/unicodeliterals.pyx +++ b/tests/run/unicodeliterals.pyx @@ -67,8 +67,6 @@ __doc__ = br""" True >>> null == u'\\x00' # unescaped by Python (required by doctest) True - >>> wide_literal == u'\U00101234' # unescaped by Cython - True >>> wide_literal == u'\\U00101234' # unescaped by Python True """ @@ -78,6 +76,13 @@ if sys.version_info[0] >= 3: else: __doc__ = __doc__.replace(u" b'", u" '") +if sys.version_info >= (2,6): + # this doesn't work well in older Python versions + __doc__ += u""" + >>> wide_literal == u'\U00101234' # unescaped by Cython + True +""" + sa = 'abc' ua = u'abc'