From c3b8f57d2cd96801052fc0d0f56401aaa8d4f063 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 26 Dec 2009 15:27:49 -0500 Subject: Mark some lines as uncoverable, add some tests for some test methods. --- test/backunittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/backunittest.py') diff --git a/test/backunittest.py b/test/backunittest.py index 33f552db..3e521e5a 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: -- cgit v1.2.1