summaryrefslogtreecommitdiff
path: root/tests/test_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 /tests/test_config.py
parente4587e795ea35931ca603d9573c4498d5276d538 (diff)
downloadpython-coveragepy-git-0d82f5f090da94e4eafc83cb4cfacc2d90fc5e74.tar.gz
Warnings can be disabled
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 2aa592b9..9224046a 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -245,6 +245,7 @@ class ConfigFileTest(CoverageTest):
plugins.a_plugin
plugins.another
debug = callers, pids , dataio
+ disable_warnings = abcd , efgh
[{section}report]
; these settings affect reporting.
@@ -325,6 +326,7 @@ class ConfigFileTest(CoverageTest):
self.assertTrue(cov.config.parallel)
self.assertEqual(cov.config.concurrency, ["thread"])
self.assertEqual(cov.config.source, ["myapp"])
+ self.assertEqual(cov.config.disable_warnings, ["abcd", "efgh"])
self.assertEqual(cov.get_exclude_list(), ["if 0:", r"pragma:?\s+no cover", "another_tab"])
self.assertTrue(cov.config.ignore_errors)