diff options
-rw-r--r-- | coverage/inorout.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py index fbd1a95e..4fb1f735 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -384,6 +384,11 @@ class InOrOut(object): if filename in warned: continue + file_path = canonical_filename(filename) + if self.omit_match and self.omit_match.match(file_path): + continue + + disp = self.should_trace(filename) if disp.trace: msg = "Already imported a file that will be measured: {}".format(filename) |