Make coverage plugin compatible with py-coverage 4.2
This commit is contained in:
parent
c6b5d71676
commit
9cc731273a
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.35 2016/06/16 18:01:50 czarkoff Exp $
|
||||
# $OpenBSD: Makefile,v 1.36 2016/10/05 17:06:28 shadchin Exp $
|
||||
|
||||
COMMENT= discovery-based unittest extension
|
||||
|
||||
@ -6,7 +6,7 @@ MODPY_EGG_VERSION= 1.3.7
|
||||
DISTNAME= nose-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
CATEGORIES= devel
|
||||
REVISION= 2
|
||||
REVISION= 3
|
||||
|
||||
HOMEPAGE= http://readthedocs.org/docs/nose/en/latest/
|
||||
|
||||
|
24
devel/py-nose/patches/patch-nose_plugins_cover_py
Normal file
24
devel/py-nose/patches/patch-nose_plugins_cover_py
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-nose_plugins_cover_py,v 1.1 2016/10/05 17:06:28 shadchin Exp $
|
||||
|
||||
Make coverage plugin compatible with py-coverage 4.2
|
||||
|
||||
--- nose/plugins/cover.py.orig Sun Oct 2 20:23:01 2016
|
||||
+++ nose/plugins/cover.py Sun Oct 2 20:22:32 2016
|
||||
@@ -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)
|
||||
- self.coverInstance.report(modules, file=stream)
|
||||
+ self.coverInstance.report(modules, file=stream, show_missing=True)
|
||||
|
||||
import coverage
|
||||
if self.coverHtmlDir:
|
||||
@@ -207,7 +207,7 @@ class Coverage(Plugin):
|
||||
# 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}$')
|
Loading…
x
Reference in New Issue
Block a user