diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-07-08 16:34:48 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-07-08 16:34:48 -0400 |
commit | b7ca9039c68fefff93f8c787f0c1589e097c8e4f (patch) | |
tree | 354662b80c20ee4dda79fcd480d0db3da2d3234e /coverage/summary.py | |
parent | b6242f45e29d63b62989a48d1097e1c30bf22eaf (diff) | |
download | python-coveragepy-git-b7ca9039c68fefff93f8c787f0c1589e097c8e4f.tar.gz |
Be stricter about self._data
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index 9fc60676..95afbcf0 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -16,7 +16,8 @@ class SummaryReporter(Reporter): def __init__(self, coverage, config): super(SummaryReporter, self).__init__(coverage, config) - self.branches = coverage.data.has_arcs() + data = coverage.get_data() + self.branches = data.has_arcs() def report(self, morfs, outfile=None): """Writes a report summarizing coverage statistics per module. |