From b764393571dbb84996f26b7f52cb02599b44b5a9 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 30 Aug 2018 08:55:49 -0400 Subject: Show the contents of the config file --- coverage/config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index a0d7d06b..061fa304 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -181,6 +181,7 @@ class CoverageConfig(object): self.config_files_read = [] # The file that gave us our configuration. self.config_file = None + self._config_contents = None # Defaults for [run] and [report] self._include = None @@ -315,6 +316,8 @@ class CoverageConfig(object): if used: self.config_file = filename + with open(filename) as f: + self._config_contents = f.read() return used -- cgit v1.2.1