diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-20 14:18:15 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-20 14:18:15 -0500 |
commit | e94ca0eaf7bcbf7800b3ba94517ea4f8a8329060 (patch) | |
tree | ce2e5bc5aa89ae8731d18f93c531aa1dc83bda8d /test/backunittest.py | |
parent | 30c191f13fe5d397d1b624b4894f2c6bd841a389 (diff) | |
download | python-coveragepy-git-e94ca0eaf7bcbf7800b3ba94517ea4f8a8329060.tar.gz |
It helps if you exclude the proper pragma comment.
Diffstat (limited to 'test/backunittest.py')
-rw-r--r-- | test/backunittest.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |