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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f808f8ec
Commit
f808f8ec
authored
Jul 17, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test in Py<=2.5
parent
64a214ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
tests/run/tuple.pyx
tests/run/tuple.pyx
+4
-9
No files found.
tests/run/tuple.pyx
View file @
f808f8ec
import
sys
if
sys
.
version_info
<
(
2
,
5
):
__doc__
=
__doc__
.
replace
(
u"'NoneType' object is not iterable
\
n
>>> tuple_none_list()"
,
u'iteration over non-sequence
\
n
>>> tuple_none_list()'
)
def
f
(
obj1
,
obj2
,
obj3
,
obj4
,
obj5
):
def
f
(
obj1
,
obj2
,
obj3
,
obj4
,
obj5
):
"""
"""
...
@@ -69,17 +64,17 @@ def l(obj1, obj2, obj3, obj4, obj5):
...
@@ -69,17 +64,17 @@ def l(obj1, obj2, obj3, obj4, obj5):
def
tuple_none
():
def
tuple_none
():
"""
"""
>>> tuple_none()
>>> tuple_none()
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
'NoneType' object is not iterable
TypeError:
...itera...
"""
"""
return
tuple
(
None
)
return
tuple
(
None
)
def
tuple_none_list
():
def
tuple_none_list
():
"""
"""
>>> tuple_none_list()
>>> tuple_none_list()
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
'NoneType' object is not iterable
TypeError:
...iterable...
"""
"""
cdef
list
none
=
None
cdef
list
none
=
None
return
tuple
(
none
)
return
tuple
(
none
)
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