diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-25 19:25:03 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-26 10:37:07 -0400 |
commit | 8295f50fa3dfebb12b94f9745385a3227ec7d53c (patch) | |
tree | 3c1cc598b0817bf5c1773fd237db8e81d05bd12a /coverage/control.py | |
parent | 15618a42862eac786fd21e02943600899cd5c0af (diff) | |
download | python-coveragepy-git-8295f50fa3dfebb12b94f9745385a3227ec7d53c.tar.gz |
Better sys_info: pid, and a more understandable name.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index 6329441f..37ebada6 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -846,17 +846,18 @@ class Coverage(object): ('configs_attempted', self.config.attempted_config_files), ('configs_read', self.config.config_files_read), ('config_file', self.config.config_file), - ('data_path', self._data.filename if self._data else "-none-"), + ('data_file', self._data.filename if self._data else "-none-"), ('python', sys.version.replace('\n', '')), ('platform', platform.platform()), ('implementation', platform.python_implementation()), ('executable', sys.executable), + ('pid', os.getpid()), ('cwd', os.getcwd()), ('path', sys.path), ('environment', sorted( ("%s = %s" % (k, v)) for k, v in iitems(os.environ) - if k.startswith(("COV", "PY")) + if any(slug in k for slug in ("COV", "PY")) )), ('command_line', " ".join(getattr(sys, 'argv', ['???']))), ] |