[Zope3-dev] Daylight savings unittest errors
Barry Pederson
bp@barryp.org
Sat, 07 Jun 2003 09:53:05 -0500
I was wondering if anyone had taken a look at a couple items I filed in the
collector 2 weeks ago relating to daylight savings time, along with patches:
http://collector.zope.org/Zope3-dev/159
http://collector.zope.org/Zope3-dev/160
I'm still getting 6 unittest failures on my FreeBSD 4.8 machine (now
running Python 2.2.3). The code I suggested patches for seems wrong to me,
but I'm puzzled why the automatic reports posted to the list show no
failures - so I'm scratching my head a bit over this.
(Also, I entered another item: http://collector.zope.org/Zope3-dev/158
to display the TTW interface dropdown in nicer order)
Barry
======================================================================
FAIL: checkFullTimeStamp (zodb.tests.test_timestamp.TimeStampTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/barryp/Zope3/src/zodb/tests/test_timestamp.py", line 48,
in checkFullTimeStamp
self.assertEquals(ts.timeTime() + time.timezone, time.mktime(t))
File "/usr/local/lib/python2.2/unittest.py", line 286, in failUnlessEqual
raise self.failureException, \
AssertionError: 1055017976.0 != 1055014376.0
======================================================================
FAIL: testCookie
(zope.app.services.tests.test_cookiesessionservice.CookieServiceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 96, in testCookie
self.svc.setRequestId(req, sid)
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
103, in setRequestId
path=request.getApplicationURL(path_only=True)
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 54, in setCookie
raise AssertionError
AssertionError
======================================================================
FAIL: testForgingCookies
(zope.app.services.tests.test_cookiesessionservice.CookieServiceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 125, in testForgingCookies
self.svc.setRequestId(req, fakeValue)
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
103, in setRequestId
path=request.getApplicationURL(path_only=True)
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 54, in setCookie
raise AssertionError
AssertionError
======================================================================
FAIL: testGetSession
(zope.app.services.tests.test_cookiesessionservice.CookieServiceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 101, in testGetSession
sid = self.svc.getSessionId(req)
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
114, in getSessionId
self.setRequestId(request, sid)
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
103, in setRequestId
path=request.getApplicationURL(path_only=True)
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 54, in setCookie
raise AssertionError
AssertionError
======================================================================
FAIL: testLookupAndInvalidate
(zope.app.services.tests.test_cookiesessionservice.CookieServiceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 114, in testLookupAndInvalidate
d = getSessionDataObject(self.rootFolder, req, "dm")
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
137, in getSessionDataObject
sid = service.getSessionId(request)
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
114, in getSessionId
self.setRequestId(request, sid)
File "/usr/home/barryp/Zope3/src/zope/app/services/session.py", line
103, in setRequestId
path=request.getApplicationURL(path_only=True)
File
"/usr/home/barryp/Zope3/src/zope/app/services/tests/test_cookiesessionservice.py",
line 54, in setCookie
raise AssertionError
AssertionError
======================================================================
FAIL: testDateRoundTrip (zope.server.http.tests.test_httpdate.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/barryp/Zope3/src/zope/server/http/tests/test_httpdate.py", line
28, in testDateRoundTrip
self.assertEquals(t, parse_http_date(build_http_date(t)))
File "/usr/local/lib/python2.2/unittest.py", line 286, in failUnlessEqual
raise self.failureException, \
AssertionError: 1054996814 != 1054993214
----------------------------------------------------------------------
Ran 4365 tests in 747.719s
FAILED (failures=6)