diff options
| author | AlexCLeduc <ledualex@gmail.com> | 2020-10-16 21:44:32 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-17 17:24:47 -0500 |
| commit | 6aa9d1d91b6c29b9ac3f025ab8ff69d1d18c2e26 (patch) | |
| tree | 073fdb3ac40ec09f3ac287c4c98027ae0d22910e | |
| parent | a7046113e9e4dc14f70296e7c792075e83d7b49a (diff) | |
| download | python-coveragepy-git-pr/1044.tar.gz | |
exclude omitted files from already-imported warnings when plugins import those modulespr/1044
| -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) |
