mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-27 15:57:28 -07:00
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>
21 lines
950 B
Diff
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}$')
|