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
ba59a707
Commit
ba59a707
authored
Jul 27, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix coverage reporting for compiled .py files by disabling disfunctional coverage.py fallback
parent
cbea77bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Coverage.py
Cython/Coverage.py
+5
-2
No files found.
Cython/Coverage.py
View file @
ba59a707
...
...
@@ -78,8 +78,11 @@ class Plugin(CoveragePlugin):
return
CythonModuleTracer
(
filename
,
py_file
,
c_file
,
self
.
_c_files_map
,
self
.
_file_path_map
)
def
file_reporter
(
self
,
filename
):
if
os
.
path
.
splitext
(
filename
)[
1
].
lower
()
not
in
(
'.pyx'
,
'.pxi'
,
'.pxd'
):
return
None
# let coverage.py handle it (e.g. .py files)
# TODO: let coverage.py handle .py files itself
#ext = os.path.splitext(filename)[1].lower()
#if ext == '.py':
# from coverage.python import PythonFileReporter
# return PythonFileReporter(filename)
filename
=
os
.
path
.
abspath
(
filename
)
if
self
.
_c_files_map
and
filename
in
self
.
_c_files_map
:
...
...
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