From 13ce8c103251012c99bdd5abc616bbd12d3adc2c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Oct 2017 19:58:37 -0400 Subject: Explicitly specified secondary config files are properly read. #588 --- tests/test_config.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_config.py') 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] -- cgit v1.2.1