no unittest.assertFail

Remove redundant catch-all wrapper, the unit testing framework
reports an exception here anyway!

svn: r23389
This commit is contained in:
Vassilii Khachaturov 2013-10-25 08:21:39 +00:00
parent 1814c41c9a
commit 63cecba1df

View File

@ -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))