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
21903ec9
Commit
21903ec9
authored
May 06, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre-Py2.5 test fixes
parent
a5b3d89b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/run/unpack.pyx
tests/run/unpack.pyx
+8
-8
No files found.
tests/run/unpack.pyx
View file @
21903ec9
...
...
@@ -36,12 +36,12 @@ def unpack_tuple(tuple it):
>>> unpack_tuple((1,2,3))
(1, 2, 3)
>>> a,b,c = None
>>> a,b,c = None
# doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:
'NoneType' object is not iterable
>>> unpack_tuple(None)
TypeError:
...
>>> unpack_tuple(None)
# doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:
'NoneType' object is not iterable
TypeError:
...
"""
a
,
b
,
c
=
it
return
a
,
b
,
c
...
...
@@ -51,12 +51,12 @@ def unpack_list(list it):
>>> unpack_list([1,2,3])
(1, 2, 3)
>>> a,b,c = None
>>> a,b,c = None
# doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:
'NoneType' object is not iterable
>>> unpack_list(None)
TypeError:
...
>>> unpack_list(None)
# doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:
'NoneType' object is not iterable
TypeError:
...
"""
a
,
b
,
c
=
it
return
a
,
b
,
c
...
...
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