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 | 13ce8c103251012c99bdd5abc616bbd12d3adc2c (patch) | |
tree | 9fec2c37dc3f42c3babfde0f693a1290439d4f05 /tests/test_config.py | |
parent | 0b59a27f6c7cd8984c7a99fb06a07a6cc4e9b1e0 (diff) | |
download | python-coveragepy-13ce8c103251012c99bdd5abc616bbd12d3adc2c.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 240a73d..a97a436 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] |