| Index: expect_tests/cover.py
|
| diff --git a/expect_tests/cover.py b/expect_tests/cover.py
|
| index 2cfe6968434739a5ca31a2c9a4b6b293bbfcc1db..dee4f16a05cc3991720c38573f112a368a33d670 100644
|
| --- a/expect_tests/cover.py
|
| +++ b/expect_tests/cover.py
|
| @@ -110,16 +110,7 @@
|
| self.cov.html_report(directory=self.html_report)
|
|
|
| outf = StringIO()
|
| -
|
| - try:
|
| - coverage_percent = self.cov.report(file=outf, show_missing=True)
|
| - except CoverageException as ce:
|
| - # If we have no data to report, this means that coverage has found no
|
| - # tests in the module. This is not nice, but we shouldn't fail.
|
| - if ce.message == 'No data to report.':
|
| - return
|
| - raise
|
| -
|
| + coverage_percent = self.cov.report(file=outf, show_missing=True)
|
| fail = coverage_percent < self.expected_coverage_min
|
| summary = outf.getvalue().replace('%- 15s' % 'Name', 'Coverage Report', 1)
|
| if verbose:
|
|
|