From 51083537fae953e8547c94ba3266ead318b02c9e Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 23 Jul 2019 18:21:04 -0700 Subject: [PATCH] Fix incorrect collections coverage warning. --- test/runner/lib/cover.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/runner/lib/cover.py b/test/runner/lib/cover.py index 00018ea2a1a..af04ac52323 100644 --- a/test/runner/lib/cover.py +++ b/test/runner/lib/cover.py @@ -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)