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
decd0bf5
Commit
decd0bf5
authored
May 07, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add simple test for unused buffer variables in a function
parent
aef28fbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
tests/buffers/bufaccess.pyx
tests/buffers/bufaccess.pyx
+13
-0
No files found.
tests/buffers/bufaccess.pyx
View file @
decd0bf5
...
@@ -44,6 +44,19 @@ def nousage():
...
@@ -44,6 +44,19 @@ def nousage():
"""
"""
cdef
object
[
int
,
ndim
=
2
]
buf
cdef
object
[
int
,
ndim
=
2
]
buf
def
disabled_usage
(
obj
):
"""
The challenge here is just compilation.
>>> disabled_usage(None)
"""
cdef
object
[
int
,
ndim
=
2
]
buf
if
False
:
buf
=
obj
return
obj
@
testcase
@
testcase
def
acquire_release
(
o1
,
o2
):
def
acquire_release
(
o1
,
o2
):
"""
"""
...
...
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