From f8009903c73c206ca5279ff953ccacc706503a9c Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Wed, 25 Sep 2013 15:51:47 +0000 Subject: [PATCH] friendlier test failure diags svn: r23198 --- gramps/gen/lib/test/date_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/gen/lib/test/date_test.py b/gramps/gen/lib/test/date_test.py index 228ea300d..9c274dccf 100644 --- a/gramps/gen/lib/test/date_test.py +++ b/gramps/gen/lib/test/date_test.py @@ -244,8 +244,9 @@ class ParserDateTest(BaseDateTest): ndate = _dp.parse(datestr) self.assertTrue(dateval.is_equal(ndate), "dateval fails is_equal in format %d:\n" - " '%s' != '%s'" % - (date_format, dateval, ndate)) + " '%s' != '%s'\n" + " '%s' != '%s'\n" % + (date_format, dateval, ndate, dateval.to_struct(), ndate.to_struct())) def test_basic(self): self.do_test("basic test")