summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathy Vanvoorden <mathy@vanvoorden.be>2016-10-11 16:22:10 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-10-11 18:36:25 +0200
commit9b2f40d3381f063e3e5ac272898791501d0ca889 (patch)
treee7ff2ba32f9d794b1a64cd3c820ccce77a2f1fcc /dev-python/nose/files
parentx11-misc/py3status: version bump (diff)
downloadgentoo-9b2f40d3381f063e3e5ac272898791501d0ca889.tar.gz
gentoo-9b2f40d3381f063e3e5ac272898791501d0ca889.tar.bz2
gentoo-9b2f40d3381f063e3e5ac272898791501d0ca889.zip
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>
Diffstat (limited to 'dev-python/nose/files')
-rw-r--r--dev-python/nose/files/nose-1.3.7-coverage-4.1-support.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/nose/files/nose-1.3.7-coverage-4.1-support.patch b/dev-python/nose/files/nose-1.3.7-coverage-4.1-support.patch
new file mode 100644
index 000000000000..87577871b613
--- /dev/null
+++ b/dev-python/nose/files/nose-1.3.7-coverage-4.1-support.patch
@@ -0,0 +1,20 @@
+--- 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}$')