better diags on test failure

svn: r23390
This commit is contained in:
Vassilii Khachaturov 2013-10-25 08:21:51 +00:00
parent 63cecba1df
commit 6f2a43877d

View File

@ -55,7 +55,10 @@ class DateHandlerTest(unittest.TestCase):
datestr = _dd.display(test_date)
new_date = _dp.parse(datestr)
self.assertTrue(test_date.is_equal(new_date))
self.assertTrue(test_date.is_equal(new_date),
"{} -> {}\n{} -> {}".format(
test_date, new_date,
test_date.to_struct(), new_date.to_struct()))
def test_simple(self):