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
5da409f8
Commit
5da409f8
authored
Feb 10, 2012
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Garbage collect our memslice tests
parent
79d7af03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
tests/run/memslice.pyx
tests/run/memslice.pyx
+9
-1
No files found.
tests/run/memslice.pyx
View file @
5da409f8
...
...
@@ -8,6 +8,7 @@ cimport cython
from
cython
cimport
view
from
cython.parallel
cimport
prange
,
parallel
import
gc
import
sys
import
re
...
...
@@ -25,7 +26,14 @@ def testcase(func):
if
not
isinstance
(
doctest
,
_u
):
doctest
=
doctest
.
decode
(
'UTF-8'
)
__test__
[
func
.
__name__
]
=
doctest
return
func
def
wrapper
(
*
args
,
**
kwargs
):
gc
.
collect
()
result
=
func
(
*
args
,
**
kwargs
)
gc
.
collect
()
return
result
return
wrapper
include
"mockbuffers.pxi"
...
...
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