From 6f2a43877dbcde3b805c39788b987f715353c50f Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Fri, 25 Oct 2013 08:21:51 +0000 Subject: [PATCH] better diags on test failure svn: r23390 --- gramps/gen/datehandler/test/datehandler_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gen/datehandler/test/datehandler_test.py b/gramps/gen/datehandler/test/datehandler_test.py index a9b2a680f..367a988a7 100644 --- a/gramps/gen/datehandler/test/datehandler_test.py +++ b/gramps/gen/datehandler/test/datehandler_test.py @@ -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):