Skip to content

Commit

Permalink
STY: No double negative
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 27, 2016
1 parent 822db03 commit cb9b82f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nose/plugins/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Coverage(Plugin):
coverInstance = None
coverErase = False
coverMinPercentage = None
coverNoPrint = False
coverPrint = True
score = 200
status = {}

Expand Down Expand Up @@ -146,7 +146,7 @@ def configure(self, options, conf):
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,
Expand Down Expand Up @@ -187,7 +187,7 @@ def report(self, stream):
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
Expand Down

0 comments on commit cb9b82f

Please # to comment.