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
cd8f7608
Commit
cd8f7608
authored
Mar 13, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py2.7 test fixes
parent
b60d65e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tests/run/dict_getitem.pyx
tests/run/dict_getitem.pyx
+3
-3
tests/run/index.pyx
tests/run/index.pyx
+1
-1
No files found.
tests/run/dict_getitem.pyx
View file @
cd8f7608
...
@@ -22,10 +22,10 @@ def test(dict d, index):
...
@@ -22,10 +22,10 @@ def test(dict d, index):
...
...
ValueError
ValueError
>>> test(None, 1)
>>> test(None, 1)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
...
...
TypeError: 'NoneType' object is
unsubscriptable
TypeError: 'NoneType' object is
...
"""
"""
return
d
[
index
]
return
d
[
index
]
...
...
tests/run/index.pyx
View file @
cd8f7608
...
@@ -6,7 +6,7 @@ __doc__ = u"""
...
@@ -6,7 +6,7 @@ __doc__ = u"""
"""
"""
import
sys
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
if
sys
.
version_info
>=
(
2
,
7
)
:
__doc__
=
__doc__
.
replace
(
u'is unsubscriptable'
,
u'is not subscriptable'
)
__doc__
=
__doc__
.
replace
(
u'is unsubscriptable'
,
u'is not subscriptable'
)
elif
sys
.
version_info
<
(
2
,
5
):
elif
sys
.
version_info
<
(
2
,
5
):
__doc__
=
__doc__
.
replace
(
u"'int' object is unsubscriptable"
,
u'unsubscriptable object'
)
__doc__
=
__doc__
.
replace
(
u"'int' object is unsubscriptable"
,
u'unsubscriptable object'
)
...
...
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