From 93c73c153f476b718c93efe39b344f5834300a70 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 13 Feb 2013 19:57:00 +0100 Subject: [PATCH] fix Py3 test issue --- tests/run/ct_DEF.pyx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/run/ct_DEF.pyx b/tests/run/ct_DEF.pyx index a969f11..485f3ef 100644 --- a/tests/run/ct_DEF.pyx +++ b/tests/run/ct_DEF.pyx @@ -11,7 +11,7 @@ if sys.version_info[0] < 3: __doc__ = __doc__.replace(u" b'", u" '") -DEF TUPLE = (1, 2, "buckle my shoe") +DEF TUPLE = (1, 2, u"buckle my shoe") DEF TRUE_FALSE = (True, False) DEF CHAR = c'x' @@ -96,8 +96,10 @@ def s(): @cython.test_assert_path_exists('//TupleNode') def constant_tuple(): """ - >>> constant_tuple() - (1, 2, 'buckle my shoe') + >>> constant_tuple()[:-1] + (1, 2) + >>> print(constant_tuple()[-1]) + buckle my shoe """ cdef object t = TUPLE return t -- 2.7.4