summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coverage/control.py5
-rw-r--r--coverage/data.py11
-rw-r--r--tests/test_data.py4
3 files changed, 4 insertions, 16 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 9ccd3b21..e1931a5b 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -268,10 +268,7 @@ class Coverage(object):
# Create the data file. We do this at construction time so that the
# data file will be written into the directory where the process
# started rather than wherever the process eventually chdir'd to.
- self.data = CoverageData(
- collector="coverage v%s" % __version__,
- debug=self.debug,
- )
+ self.data = CoverageData(debug=self.debug)
self.data_files = CoverageDataFiles(basename=self.config.data_file)
# The dirs for files considered "installed with the interpreter".
diff --git a/coverage/data.py b/coverage/data.py
index 9cf52a3c..6db99ac3 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -63,8 +63,6 @@ class CoverageData(object):
# The data file format is a pickled dict, with these keys:
#
- # * collector: a string identifying the collecting software
- #
# * lines: a dict mapping filenames to lists of line numbers
# executed::
#
@@ -83,16 +81,12 @@ class CoverageData(object):
# line data is easily recovered from the arcs: it is all the first elements
# of the pairs that are greater than zero.
- def __init__(self, collector=None, debug=None):
+ def __init__(self, debug=None):
"""Create a CoverageData.
- `collector` is a string describing the coverage measurement software,
- for example, `"coverage.py v3.14"`.
-
`debug` is a `DebugControl` object for writing debug messages.
"""
- self._collector = collector
self._debug = debug
# A map from canonical Python source file name to a dictionary in
@@ -312,9 +306,6 @@ class CoverageData(object):
else:
file_data['lines'] = dict((f, list(lmap.keys())) for f, lmap in iitems(self._lines))
- if self._collector:
- file_data['collector'] = self._collector
-
file_data['plugins'] = self._plugins
# Write the pickle to the file.
diff --git a/tests/test_data.py b/tests/test_data.py
index a20a7db1..4999f25f 100644
--- a/tests/test_data.py
+++ b/tests/test_data.py
@@ -319,7 +319,7 @@ class CoverageDataTestInTempDir(DataTestHelpers, CoverageTest):
"""Tests of CoverageData that need a temp dir to make files."""
def test_read_write_lines(self):
- covdata1 = CoverageData(collector="coverage tests")
+ covdata1 = CoverageData()
covdata1.add_lines(LINES_1)
covdata1.write_file("lines.dat")
@@ -330,7 +330,7 @@ class CoverageDataTestInTempDir(DataTestHelpers, CoverageTest):
self.assertCountEqual(covdata2.lines("a.py"), A_PY_LINES_1)
def test_read_write_arcs(self):
- covdata1 = CoverageData(collector="coverage tests")
+ covdata1 = CoverageData()
covdata1.add_arcs(ARCS_3)
covdata1.write_file("arcs.dat")