From 7ba0ddecf52511fefcf618c11a85baddab132be4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 16 Jul 2015 15:40:23 -0400 Subject: Add a boolean interpretation of CoverageData. --- coverage/control.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index ca3660a..7c14e1b 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. -- cgit v1.2.1