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
990cb64b
Commit
990cb64b
authored
May 29, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more CF tests
parent
07c389f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
tests/errors/w_uninitialized.pyx
tests/errors/w_uninitialized.pyx
+15
-0
tests/errors/w_unused.pyx
tests/errors/w_unused.pyx
+6
-0
No files found.
tests/errors/w_uninitialized.pyx
View file @
990cb64b
...
...
@@ -62,6 +62,18 @@ def from_import():
print
bar
from
foo
import
bar
def
regular_import
():
print
foo
import
foo
def
raise_stat
():
try
:
raise
exc
,
msg
except
:
pass
exc
=
ValueError
msg
=
'dummy'
_ERRORS
=
"""
6:11: local variable 'a' referenced before assignment
12:12: local variable 'a' might be referenced before assignment
...
...
@@ -70,4 +82,7 @@ _ERRORS = """
58:11: local variable 'a' referenced before assignment
58:14: local variable 'b' referenced before assignment
62:13: local variable 'bar' referenced before assignment
66:13: local variable 'foo' referenced before assignment
71:17: local variable 'exc' referenced before assignment
71:22: local variable 'msg' referenced before assignment
"""
tests/errors/w_unused.pyx
View file @
990cb64b
...
...
@@ -31,6 +31,10 @@ def used(x, y):
y
[
0
]
=
1
lambda
x
:
x
def
unused_and_unassigned
():
cdef
object
foo
cdef
int
i
_ERRORS
=
"""
6:6: Unused entry 'a'
9:9: Unused entry 'b'
...
...
@@ -38,4 +42,6 @@ _ERRORS = """
16:6: Unused result in 'r'
21:4: Unused entry 'unused_one'
25:4: Unused entry 'Unused'
35:16: Unused entry 'foo'
36:13: Unused entry 'i'
"""
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