From 63cecba1dfd5b5627190ec8f653c8a8625bae218 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Fri, 25 Oct 2013 08:21:39 +0000 Subject: [PATCH] no unittest.assertFail Remove redundant catch-all wrapper, the unit testing framework reports an exception here anyway! svn: r23389 --- gramps/gen/datehandler/test/datehandler_test.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gramps/gen/datehandler/test/datehandler_test.py b/gramps/gen/datehandler/test/datehandler_test.py index 9e52d6894..a9b2a680f 100644 --- a/gramps/gen/datehandler/test/datehandler_test.py +++ b/gramps/gen/datehandler/test/datehandler_test.py @@ -51,18 +51,9 @@ from .. import displayer as _dd # #------------------------------------------------------------------------- class DateHandlerTest(unittest.TestCase): - def base_test(self, test_date): - - try: - datestr = _dd.display(test_date) - except: - self.assertFail('Date displayer exception') - - try: - new_date = _dp.parse(datestr) - except: - self.assertFail('Date parser exception') + datestr = _dd.display(test_date) + new_date = _dp.parse(datestr) self.assertTrue(test_date.is_equal(new_date))