Commit f808f8ec authored by Stefan Behnel's avatar Stefan Behnel

fix test in Py<=2.5

parent 64a214ab
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): def f(obj1, obj2, obj3, obj4, obj5):
""" """
...@@ -69,17 +64,17 @@ def l(obj1, obj2, obj3, obj4, obj5): ...@@ -69,17 +64,17 @@ def l(obj1, obj2, obj3, obj4, obj5):
def tuple_none(): def tuple_none():
""" """
>>> tuple_none() >>> tuple_none() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: 'NoneType' object is not iterable TypeError: ...itera...
""" """
return tuple(None) return tuple(None)
def tuple_none_list(): def tuple_none_list():
""" """
>>> tuple_none_list() >>> tuple_none_list() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: 'NoneType' object is not iterable TypeError: ...iterable...
""" """
cdef list none = None cdef list none = None
return tuple(none) return tuple(none)
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