summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorloic@dachary.org <loic@dachary.org>2016-12-16 13:29:18 +0100
committerloic@dachary.org <loic@dachary.org>2016-12-16 13:29:18 +0100
commitfe5739b703c4f4171e998bee9ce2ad3dfd7959a2 (patch)
treec3196d831452a96c23c59b4914831c7631e29a54 /tests/test_config.py
parent878363970556406d1eed322f6bd8747af1145462 (diff)
downloadpython-coveragepy-git-fe5739b703c4f4171e998bee9ce2ad3dfd7959a2.tar.gz
--source and --include are mutually exclusive #265
Add a sanity_check function to CoverageConfig to perform sanity checks after configuration values have been collected from files, arguments etc. Raise an error if --source and --include are both set. The config tests are amended because some of them have both source and include set. Based on the original patch from Nathan Land close #265 --HG-- branch : issue-265 extra : amend_source : 2c0e1173285d07174bc632fb3a8df437201607a6
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 6cb5e468..2aa592b9 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -239,7 +239,6 @@ class ConfigFileTest(CoverageTest):
branch = 1
cover_pylib = TRUE
parallel = on
- include = a/ , b/
concurrency = thread
source = myapp
plugins =
@@ -329,7 +328,6 @@ class ConfigFileTest(CoverageTest):
self.assertEqual(cov.get_exclude_list(), ["if 0:", r"pragma:?\s+no cover", "another_tab"])
self.assertTrue(cov.config.ignore_errors)
- self.assertEqual(cov.config.include, ["a/", "b/"])
self.assertEqual(cov.config.omit, ["one", "another", "some_more", "yet_more"])
self.assertEqual(cov.config.precision, 3)