diff options
author | Ned Batchelder <nedbat@gmail.com> | 2013-04-21 17:04:10 -0400 |
---|---|---|
committer | Ned Batchelder <nedbat@gmail.com> | 2013-04-21 17:04:10 -0400 |
commit | e911a7867e5c5bfac712e56280e61afc166e32c0 (patch) | |
tree | 0f7d417cacc43b5a8a619dc94c336958a1a4e678 /coverage/control.py | |
parent | 0c8152d5d237bcfcb846e17f7907ea8a1ec352bf (diff) | |
parent | 129e8aea0133f173f5014a549ce372dde1fcd5b6 (diff) | |
download | python-coveragepy-e911a7867e5c5bfac712e56280e61afc166e32c0.tar.gz |
Merged in desmaj/coverage.py (pull request #17)
Removed redundant code; Changed a setup.py test to ensure that the proper setup.py is imported; Changed the 'oddball' tests to use a filename whitelist instead of a blacklist (so that tests run better under instrumental)
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index afb6137..09bd75f 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -499,6 +499,12 @@ class coverage(object): for src in self.source: for py_file in find_python_files(src): py_file = self.file_locator.canonical_filename(py_file) + + if self.omit_match and self.omit_match.match(py_file): + # Turns out this file was omitted, so don't pull it + # back in as unexecuted. + continue + self.data.touch_file(py_file) self._measured = False |