Re: unit tests in a sorry state
Donovan Baarda <[email protected]>
| Newsgroups | gmane.comp.web.zope.coders |
|---|---|
| Organization | http://minkirri.apana.org.au/~abo/ |
| Message-ID | <1107386155.3805.18.camel@schizo> |
On Thu, 2005-02-03 at 02:04 +1100, Anthony Baxter wrote:
> On Thursday 03 February 2005 01:46, Andreas Jung wrote:
> > I tried Python 2.3.5c1 with the latest 2.7 checkout on FC3 and all tests
> > pass.
>
> Well, I'd love to know why they're failing for me. They look like hardcoded
> timezones to me...
Just ran the tests for 2.7.4 and got 12 failures. Looks like Timezones
might be an issue. We set and export the TZ variable to
"AEST-10AEDT-11,M10.5.0,M3.5.0" to make our timezone work properly
(Australia/Melbourne, there is a long standing problem with Zope's
DataTime that makes it fail to recognise many timezones without setting
the TZ variable to force it). The errors we are getting are;
======================================================================
FAIL: Constructor from date/time string
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/abo/lib/Zope-2.7.4/lib/python/DateTime/tests/testDateTime.py",
line 77, in testConstructor3
self.assertEqual(repr(dt),repr(dt1))
File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: "DateTime('2005/02/03 09:57:11.652 GMT+1100')" !=
"DateTime('2005/02/03 09:57:11.652 GMT+11')"
We are also getting a few errors like;
======================================================================
FAIL: checkError (zLOG.tests.testzLog.EventLogTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abo/lib/Zope-2.7.4/lib/python/zLOG/tests/testzLog.py",
line 153, in checkError
self.verifyEntry(f, subsys="basic", summary="summary")
File "/home/abo/lib/Zope-2.7.4/lib/python/zLOG/tests/testzLog.py",
line 86, in verifyEntry
self.fail("can't find entry in log file")
File "/usr/lib/python2.3/unittest.py", line 270, in fail
raise self.failureException, msg
AssertionError: can't find entry in log file
--
Donovan Baarda <[email protected]>
http://minkirri.apana.org.au/~abo/