fix test for Py3.x after breaking it with the Py2.4 fix
authorStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 14:43:58 +0000 (16:43 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 14:43:58 +0000 (16:43 +0200)
tests/run/unicodeliterals.pyx

index 9e7c57f857ac0ffdd343406f0bb430a51c5827bc..66f2673440714230db8acbc0a7855a15c89781d2 100644 (file)
@@ -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'