projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40545bd
)
error test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 7 Apr 2011 18:54:35 +0000
(20:54 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 7 Apr 2011 18:54:35 +0000
(20:54 +0200)
tests/errors/e_nonlocal_T490.pyx
patch
|
blob
|
history
diff --git
a/tests/errors/e_nonlocal_T490.pyx
b/tests/errors/e_nonlocal_T490.pyx
index 0079df2dcd979dcae3b208bc5be6409e13fa6173..55d7e3a5255fa28147f1b76478fba26799181e17 100644
(file)
--- a/
tests/errors/e_nonlocal_T490.pyx
+++ b/
tests/errors/e_nonlocal_T490.pyx
@@
-1,3
+1,4
@@
+# mode: error
def test_non_existant():
nonlocal no_such_name
@@
-28,8
+29,8
@@
def redef_in_class_scope():
_ERRORS = u"""
-
3
:4: no binding for nonlocal 'no_such_name' found
-1
0
:8: 'x' redeclared as nonlocal
-1
5
:4: no binding for nonlocal 'global_name' found
-2
7
:8: 'x' redeclared as nonlocal
+
4
:4: no binding for nonlocal 'no_such_name' found
+1
1
:8: 'x' redeclared as nonlocal
+1
6
:4: no binding for nonlocal 'global_name' found
+2
8
:8: 'x' redeclared as nonlocal
"""