From: Stefan Behnel Date: Thu, 21 Apr 2011 17:28:56 +0000 (+0200) Subject: test fix for narrow Py3 Unicode builds X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c01af3c9c714f86a60a2d2d1569dfe165a417a5c;p=cython.git test fix for narrow Py3 Unicode builds --- diff --git a/tests/run/strliterals.pyx b/tests/run/strliterals.pyx index 8d844579..4312d988 100644 --- a/tests/run/strliterals.pyx +++ b/tests/run/strliterals.pyx @@ -132,7 +132,8 @@ __doc__ = ur""" >>> len(bytes_uescape) 28 - >>> (sys.version_info[0] >= 3 and len(str_uescape) == 3 or + >>> (sys.version_info[0] >= 3 and sys.maxunicode == 1114111 and len(str_uescape) == 3 or + ... sys.version_info[0] >= 3 and sys.maxunicode == 65536 and len(str_uescape) == 4 or ... sys.version_info[0] < 3 and len(str_uescape) == 17 or ... len(str_uescape)) True