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
40955fec
Commit
40955fec
authored
May 26, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix coverage analysis in test runner
parent
f9baac12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
runtests.py
runtests.py
+5
-12
No files found.
runtests.py
View file @
40955fec
...
...
@@ -242,6 +242,11 @@ if __name__ == '__main__':
options
,
cmd_args
=
parser
.
parse_args
()
if
options
.
coverage
:
import
coverage
coverage
.
erase
()
coverage
.
start
()
WITH_CYTHON
=
options
.
with_cython
if
WITH_CYTHON
:
...
...
@@ -250,11 +255,6 @@ if __name__ == '__main__':
default_options
as
pyrex_default_options
,
\
compile
as
cython_compile
from
distutils.dist
import
Distribution
from
distutils.core
import
Extension
from
distutils.command.build_ext
import
build_ext
distutils_distro
=
Distribution
()
# RUN ALL TESTS!
ROOTDIR
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'tests'
)
WORKDIR
=
os
.
path
.
join
(
os
.
getcwd
(),
'BUILD'
)
...
...
@@ -277,17 +277,10 @@ if __name__ == '__main__':
if
not
selectors
:
selectors
=
[
lambda
x
:
True
]
if
options
.
coverage
:
import
coverage
coverage
.
erase
()
tests
=
TestBuilder
(
ROOTDIR
,
WORKDIR
,
selectors
,
options
.
annotate_source
,
options
.
cleanup_workdir
)
test_suite
=
tests
.
build_suite
()
if
options
.
coverage
:
coverage
.
start
()
unittest
.
TextTestRunner
(
verbosity
=
options
.
verbosity
).
run
(
test_suite
)
if
options
.
coverage
:
...
...
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