summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Larson <larson.eric.d@gmail.com>2014-08-11 08:27:25 -0700
committerEric Larson <larson.eric.d@gmail.com>2016-01-27 14:35:40 -0500
commitcb9b82f03075e103642ca132c6c15b838437017d (patch)
treeb52c920708f95b5e02415006018d860964b1a892
parent822db03d54f5fe3b6064d582677d7b74474682f5 (diff)
downloadnose-cb9b82f03075e103642ca132c6c15b838437017d.tar.gz
STY: No double negative
-rw-r--r--nose/plugins/cover.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nose/plugins/cover.py b/nose/plugins/cover.py
index 0e8392a..527f484 100644
--- a/nose/plugins/cover.py
+++ b/nose/plugins/cover.py
@@ -29,7 +29,7 @@ class Coverage(Plugin):
coverInstance = None
coverErase = False
coverMinPercentage = None
- coverNoPrint = False
+ coverPrint = True
score = 200
status = {}
@@ -146,7 +146,7 @@ class Coverage(Plugin):
if options.cover_xml:
self.coverXmlFile = options.cover_xml_file
log.debug('Will put XML coverage report in %s', self.coverXmlFile)
- self.coverNoPrint = options.cover_no_print
+ self.coverPrint = not options.cover_no_print
if self.enabled:
self.status['active'] = True
self.coverInstance = coverage.coverage(auto_data=False,
@@ -187,7 +187,7 @@ class Coverage(Plugin):
for name, module in sys.modules.items()
if self.wantModuleCoverage(name, module)]
log.debug("Coverage report will cover modules: %s", modules)
- if not self.coverNoPrint:
+ if self.coverPrint:
self.coverInstance.report(modules, file=stream)
import coverage