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
4c9acf09
Commit
4c9acf09
authored
Jan 05, 2019
by
wjsi
Committed by
wenjun.swj
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inconsistency between trace files and report files
parent
5ecb4ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Coverage.py
Cython/Coverage.py
+4
-2
No files found.
Cython/Coverage.py
View file @
4c9acf09
...
@@ -74,7 +74,7 @@ class Plugin(CoveragePlugin):
...
@@ -74,7 +74,7 @@ class Plugin(CoveragePlugin):
if
c_file
is
None
:
if
c_file
is
None
:
c_file
,
py_file
=
self
.
_find_source_files
(
filename
)
c_file
,
py_file
=
self
.
_find_source_files
(
filename
)
if
not
c_file
:
if
not
c_file
:
return
None
return
None
# unknown file
# parse all source file paths and lines from C file
# parse all source file paths and lines from C file
# to learn about all relevant source files right away (pyx/pxi/pxd)
# to learn about all relevant source files right away (pyx/pxi/pxd)
...
@@ -82,7 +82,9 @@ class Plugin(CoveragePlugin):
...
@@ -82,7 +82,9 @@ class Plugin(CoveragePlugin):
# is not from the main .pyx file but a file with a different
# is not from the main .pyx file but a file with a different
# name than the .c file (which prevents us from finding the
# name than the .c file (which prevents us from finding the
# .c file)
# .c file)
self
.
_parse_lines
(
c_file
,
filename
)
_
,
code
=
self
.
_parse_lines
(
c_file
,
filename
)
if
code
is
None
:
return
None
# no source found
if
self
.
_file_path_map
is
None
:
if
self
.
_file_path_map
is
None
:
self
.
_file_path_map
=
{}
self
.
_file_path_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