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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f78e4cb8
Commit
f78e4cb8
authored
Jul 29, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Buffer release test case
parent
ce24bec1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
tests/run/bufaccess.pyx
tests/run/bufaccess.pyx
+21
-1
No files found.
tests/run/bufaccess.pyx
View file @
f78e4cb8
...
@@ -29,6 +29,11 @@ def testcase(func):
...
@@ -29,6 +29,11 @@ def testcase(func):
def
testcas
(
a
):
def
testcas
(
a
):
pass
pass
#
# Buffer acquire and release tests
#
@
testcase
@
testcase
def
acquire_release
(
o1
,
o2
):
def
acquire_release
(
o1
,
o2
):
"""
"""
...
@@ -290,6 +295,21 @@ def tuple_buffer_assignment2(tup):
...
@@ -290,6 +295,21 @@ def tuple_buffer_assignment2(tup):
cdef
object
[
int
]
x
,
y
cdef
object
[
int
]
x
,
y
x
,
y
=
tup
x
,
y
=
tup
@
testcase
def
explicitly_release_buffer
():
"""
>>> explicitly_release_buffer()
acquired A
released A
After release
"""
cdef
object
[
int
]
x
=
IntMockBuffer
(
"A"
,
range
(
10
))
x
=
None
print
"After release"
#
# Index bounds checking
#
@
testcase
@
testcase
def
get_int_2d
(
object
[
int
,
2
]
buf
,
int
i
,
int
j
):
def
get_int_2d
(
object
[
int
,
2
]
buf
,
int
i
,
int
j
):
"""
"""
...
...
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