summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-04-04 07:08:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-04-04 07:08:41 -0400
commit0d82f5f090da94e4eafc83cb4cfacc2d90fc5e74 (patch)
treeac190096894b6a58e328c19206444da48e2db4c0 /coverage/config.py
parente4587e795ea35931ca603d9573c4498d5276d538 (diff)
downloadpython-coveragepy-git-0d82f5f090da94e4eafc83cb4cfacc2d90fc5e74.tar.gz
Warnings can be disabled
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 3dd6ea9c..3651de33 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -158,6 +158,7 @@ class CoverageConfig(object):
self.cover_pylib = False
self.data_file = ".coverage"
self.debug = []
+ self.disable_warnings = []
self.note = None
self.parallel = False
self.plugins = []
@@ -191,7 +192,7 @@ class CoverageConfig(object):
# Options for plugins
self.plugin_options = {}
- MUST_BE_LIST = ["omit", "include", "debug", "plugins", "concurrency"]
+ MUST_BE_LIST = ["concurrency", "debug", "disable_warnings", "include", "omit", "plugins"]
def from_args(self, **kwargs):
"""Read config values from `kwargs`."""
@@ -283,6 +284,7 @@ class CoverageConfig(object):
('cover_pylib', 'run:cover_pylib', 'boolean'),
('data_file', 'run:data_file'),
('debug', 'run:debug', 'list'),
+ ('disable_warnings', 'run:disable_warnings', 'list'),
('include', 'run:include', 'list'),
('note', 'run:note'),
('omit', 'run:omit', 'list'),