Fix incorrect collections coverage warning.
This commit is contained in:
parent
ba7097cba3
commit
51083537fa
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@ def command_coverage_combine(args):
|
||||||
|
|
||||||
for filename in arc_data:
|
for filename in arc_data:
|
||||||
if not os.path.isfile(filename):
|
if not os.path.isfile(filename):
|
||||||
|
if collection_search_re and collection_search_re.search(filename) and os.path.basename(filename) == '__init__.py':
|
||||||
|
# the collection loader uses implicit namespace packages, so __init__.py does not need to exist on disk
|
||||||
|
continue
|
||||||
|
|
||||||
invalid_path_count += 1
|
invalid_path_count += 1
|
||||||
invalid_path_chars += len(filename)
|
invalid_path_chars += len(filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue