test fix for Py<=2.5
authorStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 14:03:36 +0000 (16:03 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 14:03:36 +0000 (16:03 +0200)
tests/run/unicodeliterals.pyx

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