Commit bf0c9758 authored by Stefan Behnel's avatar Stefan Behnel

Avoid exact error message comparison since PyPy has a different one.

parent 5639991c
......@@ -308,9 +308,9 @@ def reversed_range_step3_neg_py_args(a, b):
def reversed_range_step3_py_obj_left(a, int b):
"""
>>> reversed_range_step3_py_obj_left(set(), 0)
>>> reversed_range_step3_py_obj_left(set(), 0) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
TypeError: ...int...
"""
cdef long i
result = []
......@@ -319,9 +319,9 @@ def reversed_range_step3_py_obj_left(a, int b):
def reversed_range_step3_py_obj_right(int a, b):
"""
>>> reversed_range_step3_py_obj_right(0, set())
>>> reversed_range_step3_py_obj_right(0, set()) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
TypeError: ...int...
"""
cdef long i
result = []
......@@ -330,9 +330,9 @@ def reversed_range_step3_py_obj_right(int a, b):
def reversed_range_step3_neg_py_obj_left(a, int b):
"""
>>> reversed_range_step3_neg_py_obj_left(set(), 0)
>>> reversed_range_step3_neg_py_obj_left(set(), 0) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
TypeError: ...int...
"""
cdef long i
result = []
......@@ -341,9 +341,9 @@ def reversed_range_step3_neg_py_obj_left(a, int b):
def reversed_range_step3_neg_py_obj_right(int a, b):
"""
>>> reversed_range_step3_py_obj_right(0, set())
>>> reversed_range_step3_py_obj_right(0, set()) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
TypeError: ...int...
"""
cdef long i
result = []
......
......@@ -47,18 +47,18 @@ def unpack_two_int(sequence it):
(1, 2)
>>> items = [1, object()]
>>> unpack_two_int(items)
>>> unpack_two_int(items) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
>>> unpack_two_int(iter(items))
TypeError: ...int...
>>> unpack_two_int(iter(items)) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
>>> unpack_two_int(list(items))
TypeError: ...int...
>>> unpack_two_int(list(items)) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
>>> unpack_two_int(tuple(items))
TypeError: ...int...
>>> unpack_two_int(tuple(items)) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: an integer is required
TypeError: ...int...
"""
cdef int b
a,b = it
......
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