diff options
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] |