diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-21 19:58:37 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-21 19:58:37 -0400 |
| commit | 2edf869e762f5e4d74d673ba180e142bef7a0d36 (patch) | |
| tree | 738fb26e6e2053e545d1b2ebd9ce9da3b98c00f9 /tests/test_config.py | |
| parent | 55f3e77ec6e7ef07fceb02140c4515165b8a9a29 (diff) | |
| download | python-coveragepy-git-2edf869e762f5e4d74d673ba180e142bef7a0d36.tar.gz | |
Explicitly specified secondary config files are properly read. #588
Diffstat (limited to 'tests/test_config.py')
| -rw-r--r-- | tests/test_config.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 240a73de..a97a436f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -459,6 +459,13 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest): cov = coverage.Coverage() self.assert_config_settings_are_correct(cov) + def test_read_prefixed_sections_from_explicit_file(self): + # You can point to a tox.ini, and it will find [coverage:run] sections + nested = self.LOTSA_SETTINGS.format(section="coverage:") + self.make_file("tox.ini", self.TOX_INI + "\n" + nested) + cov = coverage.Coverage(config_file="tox.ini") + self.assert_config_settings_are_correct(cov) + def test_non_ascii(self): self.make_file(".coveragerc", """\ [report] |
