From 5ea7a9ffa1a4afffaa29e1da75830d1bf021c4a2 Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Tue, 2 May 2017 13:43:07 +0200 Subject: [PATCH] Allow errors when generating coverage reports --- c2cwsgiutils_coverage_report.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/c2cwsgiutils_coverage_report.py b/c2cwsgiutils_coverage_report.py index 51a66b599..af01209f7 100755 --- a/c2cwsgiutils_coverage_report.py +++ b/c2cwsgiutils_coverage_report.py @@ -13,8 +13,8 @@ def main(): shutil.copytree(report_dir, dest_dir) cov = coverage.Coverage(data_file='coverage', data_suffix=True, source=sources, branch=True) cov.combine([dest_dir], strict=True) - cov.html_report(directory=dest_dir) - cov.xml_report(outfile=os.path.join(dest_dir, 'coverage.xml')) - cov.report() + cov.html_report(directory=dest_dir, ignore_errors=True) + cov.xml_report(outfile=os.path.join(dest_dir, 'coverage.xml'), ignore_errors=True) + cov.report(ignore_errors=True) main() diff --git a/setup.py b/setup.py index dcabddf7d..0ee12b343 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = '0.10.0' +VERSION = '0.10.1' HERE = os.path.abspath(os.path.dirname(__file__)) INSTALL_REQUIRES = open(os.path.join(HERE, 'rel_requirements.txt')).read().splitlines()