friendlier test failure diags
svn: r23198
This commit is contained in:
parent
1d4bb780a2
commit
f8009903c7
@ -244,8 +244,9 @@ class ParserDateTest(BaseDateTest):
|
|||||||
ndate = _dp.parse(datestr)
|
ndate = _dp.parse(datestr)
|
||||||
self.assertTrue(dateval.is_equal(ndate),
|
self.assertTrue(dateval.is_equal(ndate),
|
||||||
"dateval fails is_equal in format %d:\n"
|
"dateval fails is_equal in format %d:\n"
|
||||||
" '%s' != '%s'" %
|
" '%s' != '%s'\n"
|
||||||
(date_format, dateval, ndate))
|
" '%s' != '%s'\n" %
|
||||||
|
(date_format, dateval, ndate, dateval.to_struct(), ndate.to_struct()))
|
||||||
|
|
||||||
def test_basic(self):
|
def test_basic(self):
|
||||||
self.do_test("basic test")
|
self.do_test("basic test")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user