Commit 93c73c15 authored by Stefan Behnel's avatar Stefan Behnel

fix Py3 test issue

parent bb1fe296
...@@ -11,7 +11,7 @@ if sys.version_info[0] < 3: ...@@ -11,7 +11,7 @@ if sys.version_info[0] < 3:
__doc__ = __doc__.replace(u" b'", u" '") __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 TRUE_FALSE = (True, False)
DEF CHAR = c'x' DEF CHAR = c'x'
...@@ -96,8 +96,10 @@ def s(): ...@@ -96,8 +96,10 @@ def s():
@cython.test_assert_path_exists('//TupleNode') @cython.test_assert_path_exists('//TupleNode')
def constant_tuple(): def constant_tuple():
""" """
>>> constant_tuple() >>> constant_tuple()[:-1]
(1, 2, 'buckle my shoe') (1, 2)
>>> print(constant_tuple()[-1])
buckle my shoe
""" """
cdef object t = TUPLE cdef object t = TUPLE
return t return t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment