diff options
-rw-r--r-- | coverage/summary.py | 2 | ||||
-rw-r--r-- | test/backunittest.py | 4 | ||||
-rw-r--r-- | test/coverage_coverage.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index f4d3c2c6..3db7b767 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -58,7 +58,7 @@ class SummaryReporter(Reporter): args += (analysis.missing_formatted(),) outfile.write(fmt_coverage % args) total += nums - except KeyboardInterrupt: #pragma: no cover + except KeyboardInterrupt: # pragma: no cover raise except: if not self.ignore_errors: diff --git a/test/backunittest.py b/test/backunittest.py index 51f5df36..33f552db 100644 --- a/test/backunittest.py +++ b/test/backunittest.py @@ -42,7 +42,7 @@ class TestCase(unittest.TestCase): if re.search(regexp, excMsg): # Message provided, and we got the right one: it passes. return - else: #pragma: no cover + else: # pragma: no cover # Message provided, and it didn't match: fail! raise self.failureException( "Right exception, wrong message: " @@ -50,7 +50,7 @@ class TestCase(unittest.TestCase): ) # No need to catch other exceptions: They'll fail the test all by # themselves! - else: #pragma: no cover + else: # pragma: no cover if hasattr(excClass, '__name__'): excName = excClass.__name__ else: diff --git a/test/coverage_coverage.py b/test/coverage_coverage.py index 22655edd..990ecf17 100644 --- a/test/coverage_coverage.py +++ b/test/coverage_coverage.py @@ -67,7 +67,7 @@ def report_on_combined_files(): cov.combine() cov.save() cov.clear_exclude() - cov.exclude("#pragma: no cover") + cov.exclude("# pragma: no cover") cov.exclude("def __repr__") cov.exclude("if __name__ == .__main__.:") cov.exclude("raise AssertionError") |