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