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
69890b58
Commit
69890b58
authored
May 04, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add testcase for closure variable deletion
parent
e4793863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tests/errors/e_del.pyx
tests/errors/e_del.pyx
+9
-0
No files found.
tests/errors/e_del.pyx
View file @
69890b58
...
@@ -12,9 +12,18 @@ def f(a):
...
@@ -12,9 +12,18 @@ def f(a):
del
j
# error: deletion of non-Python object
del
j
# error: deletion of non-Python object
del
x
[
i
]
# error: deletion of non-Python object
del
x
[
i
]
# error: deletion of non-Python object
del
s
.
m
# error: deletion of non-Python object
del
s
.
m
# error: deletion of non-Python object
def
outer
(
a
):
def
inner
():
print
a
del
a
return
inner
()
_ERRORS
=
u"""
_ERRORS
=
u"""
10:9: Cannot assign to or delete this
10:9: Cannot assign to or delete this
11:48: Deletion of non-Python, non-C++ object
11:48: Deletion of non-Python, non-C++ object
13:9: Deletion of non-Python, non-C++ object
13:9: Deletion of non-Python, non-C++ object
14:9: Deletion of non-Python, non-C++ object
14:9: Deletion of non-Python, non-C++ object
19:9: can not delete variable 'a' referenced in nested scope
"""
"""
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