From f808f8ec4582cb37955e1f95afdfffaa0a26d5f4 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 17 Jul 2010 13:00:37 +0200 Subject: [PATCH] fix test in Py<=2.5 --- tests/run/tuple.pyx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/run/tuple.pyx b/tests/run/tuple.pyx index 71e939d4..aac58418 100644 --- a/tests/run/tuple.pyx +++ b/tests/run/tuple.pyx @@ -1,8 +1,3 @@ -import sys -if sys.version_info < (2,5): - __doc__ = __doc__.replace( - u"'NoneType' object is not iterable\n >>> tuple_none_list()", - u'iteration over non-sequence\n >>> tuple_none_list()') def f(obj1, obj2, obj3, obj4, obj5): """ @@ -69,17 +64,17 @@ def l(obj1, obj2, obj3, obj4, obj5): def tuple_none(): """ - >>> tuple_none() + >>> tuple_none() # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: 'NoneType' object is not iterable + TypeError: ...itera... """ return tuple(None) def tuple_none_list(): """ - >>> tuple_none_list() + >>> tuple_none_list() # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: 'NoneType' object is not iterable + TypeError: ...iterable... """ cdef list none = None return tuple(none) -- 2.26.2