Commit 85bd382e authored by wjsi's avatar wjsi Committed by Stefan Behnel

Fix inconsistency between trace files and report files

parent e25dc72e
...@@ -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 = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment