From 9f5cace1ae8c4e733160ca7235025c678f1791e6 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 17 Jul 2010 16:43:58 +0200 Subject: [PATCH] fix test for Py3.x after breaking it with the Py2.4 fix --- tests/run/unicodeliterals.pyx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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' -- 2.26.2