From 78f82600b9daa00bc15d9047f55ddbb7c91f4f7d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 23 Jul 2010 16:53:53 +0200 Subject: [PATCH] safety fix for unicode literals test - otherwise fails to print on some platforms --- tests/run/unicodeliterals.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/run/unicodeliterals.pyx b/tests/run/unicodeliterals.pyx index 66f26734..35d53443 100644 --- a/tests/run/unicodeliterals.pyx +++ b/tests/run/unicodeliterals.pyx @@ -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 """ -- 2.26.2