summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py
index ca3660ac..7c14e1b0 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -772,8 +772,7 @@ class Coverage(object):
)
# Find out if we got any data.
- summary = self.data.summary()
- if not summary and self._warn_no_data:
+ if not self.data and self._warn_no_data:
self._warn("No data was collected.")
# Find files that were never executed at all.