diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-26 15:27:49 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-26 15:27:49 -0500 |
| commit | f5eb520fce7f4826252727ca77d634d5702e2c29 (patch) | |
| tree | 481e64d880f0ad37f9e6ce37ec4ad7d02fdf5d0e /test/backunittest.py | |
| parent | 6e70fbe8f7c80d52a2f769eb984349da14453e79 (diff) | |
| download | python-coveragepy-f5eb520fce7f4826252727ca77d634d5702e2c29.tar.gz | |
Mark some lines as uncoverable, add some tests for some test methods.
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 33f552d..3e521e5 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: # 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: if hasattr(excClass, '__name__'): excName = excClass.__name__ else: |
