diff options
author | loic <loic@dachary.org> | 2016-12-16 13:29:18 +0100 |
---|---|---|
committer | loic <loic@dachary.org> | 2016-12-16 13:29:18 +0100 |
commit | cadcb4ca7a7d26589e5d42df1b4494636c39ed61 (patch) | |
tree | 346dc2c1d32ecccd3c765c0c2f07607026bc5c8c /tests/test_config.py | |
parent | b33628b4918f47694e89526955cf83b9764f6562 (diff) | |
download | python-coveragepy-issue-265.tar.gz |
--source and --include are mutually exclusive #265issue-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
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 6cb5e46..2aa592b 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) |