Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
bf0c9758
Commit
bf0c9758
authored
Sep 05, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid exact error message comparison since PyPy has a different one.
parent
5639991c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
tests/run/reversed_iteration.pyx
tests/run/reversed_iteration.pyx
+8
-8
tests/run/unpack_fused.pyx
tests/run/unpack_fused.pyx
+8
-8
No files found.
tests/run/reversed_iteration.pyx
View file @
bf0c9758
...
...
@@ -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
=
[]
...
...
tests/run/unpack_fused.pyx
View file @
bf0c9758
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment