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
Gwenaël Samain
cython
Commits
96cfed7b
Commit
96cfed7b
authored
May 22, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt doctest to different error message in pypy
parent
0f0325b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/run/index.pyx
tests/run/index.pyx
+8
-8
No files found.
tests/run/index.pyx
View file @
96cfed7b
...
@@ -83,12 +83,12 @@ def del_index_list(list L, Py_ssize_t index):
...
@@ -83,12 +83,12 @@ def del_index_list(list L, Py_ssize_t index):
[0, 2, 3]
[0, 2, 3]
>>> del_index_list(list(range(4)), -1)
>>> del_index_list(list(range(4)), -1)
[0, 1, 2]
[0, 1, 2]
>>> del_index_list(list(range(4)), py_maxsize)
>>> del_index_list(list(range(4)), py_maxsize)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
IndexError: list
assignment
index out of range
IndexError: list
...
index out of range
>>> del_index_list(list(range(4)), -py_maxsize)
>>> del_index_list(list(range(4)), -py_maxsize)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
IndexError: list
assignment
index out of range
IndexError: list
...
index out of range
"""
"""
del
L
[
index
]
del
L
[
index
]
return
L
return
L
...
@@ -102,12 +102,12 @@ def set_index_list(list L, Py_ssize_t index):
...
@@ -102,12 +102,12 @@ def set_index_list(list L, Py_ssize_t index):
[0, 5, 2, 3]
[0, 5, 2, 3]
>>> set_index_list(list(range(4)), -1)
>>> set_index_list(list(range(4)), -1)
[0, 1, 2, 5]
[0, 1, 2, 5]
>>> set_index_list(list(range(4)), py_maxsize)
>>> set_index_list(list(range(4)), py_maxsize)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
IndexError: list
assignment
index out of range
IndexError: list
...
index out of range
>>> set_index_list(list(range(4)), -py_maxsize)
>>> set_index_list(list(range(4)), -py_maxsize)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
IndexError: list
assignment
index out of range
IndexError: list
...
index out of range
"""
"""
L
[
index
]
=
5
L
[
index
]
=
5
return
L
return
L
...
...
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