diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py index f1db1ef7..cfe94096 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -559,9 +559,7 @@ class Coverage(object): if self.source_pkgs_match.match(modulename): if modulename in self.source_pkgs_unmatched: self.source_pkgs_unmatched.remove(modulename) - return None # There's no reason to skip this file. - - if not self.source_match.match(filename): + elif not self.source_match.match(filename): return "falls outside the --source trees" elif self.include_match: if not self.include_match.match(filename): |