From: Stefan Behnel Date: Sat, 17 Jul 2010 14:43:58 +0000 (+0200) Subject: fix test for Py3.x after breaking it with the Py2.4 fix X-Git-Tag: 0.13.beta0~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f5cace1ae8c4e733160ca7235025c678f1791e6;p=cython.git fix test for Py3.x after breaking it with the Py2.4 fix --- diff --git a/tests/run/unicodeliterals.pyx b/tests/run/unicodeliterals.pyx index 9e7c57f8..66f26734 100644 --- a/tests/run/unicodeliterals.pyx +++ b/tests/run/unicodeliterals.pyx @@ -71,18 +71,18 @@ __doc__ = br""" True """ -if sys.version_info[0] >= 3: - __doc__ = __doc__.replace(u" u'", u" '") -else: - __doc__ = __doc__.replace(u" b'", u" '") - if sys.version_info >= (2,6): # this doesn't work well in older Python versions - __doc__ += u""" + __doc__ += u"""\ >>> wide_literal == u'\U00101234' # unescaped by Cython True """ +if sys.version_info[0] >= 3: + __doc__ = __doc__.replace(u" u'", u" '") +else: + __doc__ = __doc__.replace(u" b'", u" '") + sa = 'abc' ua = u'abc'