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
Boxiang Sun
cython
Commits
04edac6e
Commit
04edac6e
authored
Aug 28, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some dead test code.
parent
e2d8df63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
runtests.py
runtests.py
+7
-2
tests/memoryview/memslice.pyx
tests/memoryview/memslice.pyx
+2
-4
No files found.
runtests.py
View file @
04edac6e
...
...
@@ -2020,6 +2020,9 @@ def main():
parser.add_option("--shard_num", dest="shard_num", metavar="K",
type=int, default=-1,
help="test only this single shard")
parser.add_option("--profile", dest="profile",
action="store_true", default=False,
help="enable profiling of the tests")
parser.add_option("-C", "--coverage", dest="coverage",
action="store_true", default=False,
help="collect source coverage data for the Compiler")
...
...
@@ -2191,8 +2194,8 @@ def configure_cython(options):
global CompilationOptions, pyrex_default_options, cython_compile
from Cython.Compiler.Main import
\
CompilationOptions,
\
default_options as pyrex_default_options
,
\
compile as cython_compile
default_options as pyrex_default_options
from Cython.Compiler.Options import _directive_defaults as directive_defaults
from Cython.Compiler import Errors
Errors.LEVEL = 0 # show all warnings
from Cython.Compiler import Options
...
...
@@ -2200,6 +2203,8 @@ def configure_cython(options):
from Cython.Compiler import DebugFlags
DebugFlags.debug_temp_code_comments = 1
pyrex_default_options['formal_grammar'] = options.use_formal_grammar
if options.profile:
directive_defaults['profile'] = True
if options.watermark:
import Cython.Compiler.Version
Cython.Compiler.Version.watermark = options.watermark
...
...
tests/memoryview/memslice.pyx
View file @
04edac6e
...
...
@@ -12,6 +12,7 @@ from cython cimport view
from
cython.view
cimport
array
from
cython.parallel
cimport
prange
,
parallel
from
functools
import
wraps
import
gc
import
sys
...
...
@@ -21,11 +22,8 @@ else:
import
builtins
__test__
=
{}
def
testcase
(
func
):
__test__
[
func
.
__name__
]
=
func
.
__doc__
@
wraps
(
func
)
def
wrapper
(
*
args
,
**
kwargs
):
gc
.
collect
()
result
=
func
(
*
args
,
**
kwargs
)
...
...
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