Fix incorrect collections coverage warning.

This commit is contained in:
Matt Clay 2019-07-23 18:21:04 -07:00
parent ba7097cba3
commit 51083537fa

View file

@ -188,6 +188,10 @@ def command_coverage_combine(args):
for filename in arc_data:
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_chars += len(filename)