From d75f7385a031944801f62822af8f4cdd0a371e24 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 17 Jul 2010 16:03:36 +0200 Subject: [PATCH] test fix for Py<=2.5 --- tests/run/unicodeliterals.pyx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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' -- 2.26.2