safety fix for unicode literals test - otherwise fails to print on some platforms
authorStefan Behnel <scoder@users.berlios.de>
Fri, 23 Jul 2010 14:53:53 +0000 (16:53 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 23 Jul 2010 14:53:53 +0000 (16:53 +0200)
tests/run/unicodeliterals.pyx

index 66f2673440714230db8acbc0a7855a15c89781d2..35d5344380fdc2d351a506e0bb7c36e7f47b62a8 100644 (file)
@@ -74,7 +74,9 @@ __doc__ = br"""
 if sys.version_info >= (2,6):
     # this doesn't work well in older Python versions
     __doc__ += u"""\
-    >>> wide_literal == u'\U00101234'    # unescaped by Cython
+    >>> expected = u'\U00101234'    # unescaped by Cython
+    >>> if wide_literal == expected: print True
+    ... else: print repr(wide_literal), repr(expected)
     True
 """