From c01af3c9c714f86a60a2d2d1569dfe165a417a5c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 21 Apr 2011 19:28:56 +0200 Subject: [PATCH] test fix for narrow Py3 Unicode builds --- tests/run/strliterals.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2