summaryrefslogtreecommitdiff
path: root/coverage/inorout.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r--coverage/inorout.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py
index 3bc7e54e..8badf4f7 100644
--- a/coverage/inorout.py
+++ b/coverage/inorout.py
@@ -479,6 +479,10 @@ class InOrOut:
if filename in warned:
continue
+ if len(getattr(mod, "__path__", ())) > 1:
+ # A namespace package, which confuses this code, so ignore it.
+ continue
+
disp = self.should_trace(filename)
if disp.has_dynamic_filename:
# A plugin with dynamic filenames: the Python file