From: Stefan Behnel Date: Tue, 2 Nov 2010 11:43:14 +0000 (+0100) Subject: Py2.4 test fix X-Git-Tag: 0.14.alpha0~265 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a22a763fced5d89e830d7a3becfc584c835d9316;p=cython.git Py2.4 test fix --- diff --git a/tests/run/slice2.pyx b/tests/run/slice2.pyx index 0b510bd9..1cc322e7 100644 --- a/tests/run/slice2.pyx +++ b/tests/run/slice2.pyx @@ -7,9 +7,9 @@ def f(obj1, obj2, obj3, obj4): True >>> l is f(1, l, 2, 3) False - >>> f(1, 42, 2, 3) + >>> f(1, 42, 2, 3) #doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: 'int' object is unsliceable + TypeError: ...unsliceable... """ obj1 = obj2[:] return obj1 @@ -18,9 +18,9 @@ def g(obj1, obj2, obj3, obj4): """ >>> g(1, [1,2,3,4], 2, 3) [3, 4] - >>> g(1, 42, 2, 3) + >>> g(1, 42, 2, 3) #doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: 'int' object is unsliceable + TypeError: ...unsliceable... """ obj1 = obj2[obj3:] return obj1 @@ -29,9 +29,9 @@ def h(obj1, obj2, obj3, obj4): """ >>> h(1, [1,2,3,4], 2, 3) [1, 2, 3] - >>> h(1, 42, 2, 3) + >>> h(1, 42, 2, 3) #doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: 'int' object is unsliceable + TypeError: ...unsliceable... """ obj1 = obj2[:obj4] return obj1 @@ -40,9 +40,9 @@ def j(obj1, obj2, obj3, obj4): """ >>> j(1, [1,2,3,4], 2, 3) [3] - >>> j(1, 42, 2, 3) + >>> j(1, 42, 2, 3) #doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: 'int' object is unsliceable + TypeError: ...unsliceable... """ obj1 = obj2[obj3:obj4] return obj1