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
524cec9a
Commit
524cec9a
authored
Apr 23, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deletion test
parent
b5f931ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/run/delete.pyx
tests/run/delete.pyx
+4
-4
No files found.
tests/run/delete.pyx
View file @
524cec9a
...
@@ -86,13 +86,13 @@ def del_local(a):
...
@@ -86,13 +86,13 @@ def del_local(a):
>>> del_local(object())
>>> del_local(object())
"""
"""
del
a
del
a
assert
a
is
None
# Until we have unbound locals...
assert
'a'
not
in
locals
()
def
del_seq
(
a
,
b
,
c
):
def
del_seq
(
a
,
b
,
c
):
"""
"""
>>> del_seq(1, 2, 3)
>>> del_seq(1, 2, 3)
"""
"""
del
a
,
(
b
,
c
)
del
a
,
(
b
,
c
)
assert
a
is
None
# Until we have unbound locals...
assert
'a'
not
in
locals
()
assert
b
is
None
# Until we have unbound locals...
assert
'b'
not
in
locals
()
assert
c
is
None
# Until we have unbound locals...
assert
'c'
not
in
locals
()
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