gentoo/dev-python/nose/files/nose-1.3.7-coverage-4.1-support.patch
Mathy Vanvoorden 9b2f40d338
dev-python/nose: fixed issue with testing with coverage 4.1.
I found a patch in an upstream PR but couldn't include the original as it was
against master, adapted it to v1.3.7.

Gentoo-Bug: https://bugs.gentoo.org/593724

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2536

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2016-10-11 18:36:25 +02:00

21 lines
950 B
Diff

--- a/nose/plugins/cover.py 2016-10-11 15:51:26.990868010 +0200
+++ b/nose/plugins/cover.py 2016-10-11 15:52:28.261102027 +0200
@@ -187,7 +187,7 @@
for name, module in sys.modules.items()
if self.wantModuleCoverage(name, module)]
log.debug("Coverage report will cover modules: %s", modules)
- self.coverInstance.report(modules, file=stream)
+ self.coverInstance.report(modules, file=stream, show_missing=True)
import coverage
if self.coverHtmlDir:
@@ -207,7 +207,7 @@
# make sure we have minimum required coverage
if self.coverMinPercentage:
f = StringIO.StringIO()
- self.coverInstance.report(modules, file=f)
+ self.coverInstance.report(modules, file=f, show_missing=True)
multiPackageRe = (r'-------\s\w+\s+\d+\s+\d+(?:\s+\d+\s+\d+)?'
r'\s+(\d+)%\s+\d*\s{0,1}$')