no unittest.assertFail
Remove redundant catch-all wrapper, the unit testing framework reports an exception here anyway! svn: r23389
This commit is contained in:
parent
1814c41c9a
commit
63cecba1df
@ -51,18 +51,9 @@ from .. import displayer as _dd
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class DateHandlerTest(unittest.TestCase):
|
class DateHandlerTest(unittest.TestCase):
|
||||||
|
|
||||||
def base_test(self, test_date):
|
def base_test(self, test_date):
|
||||||
|
datestr = _dd.display(test_date)
|
||||||
try:
|
new_date = _dp.parse(datestr)
|
||||||
datestr = _dd.display(test_date)
|
|
||||||
except:
|
|
||||||
self.assertFail('Date displayer exception')
|
|
||||||
|
|
||||||
try:
|
|
||||||
new_date = _dp.parse(datestr)
|
|
||||||
except:
|
|
||||||
self.assertFail('Date parser exception')
|
|
||||||
|
|
||||||
self.assertTrue(test_date.is_equal(new_date))
|
self.assertTrue(test_date.is_equal(new_date))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user