[Zope3-dev] Re: Daylight savings unittest errors

Guido van Rossum guido@python.org
Mon, 09 Jun 2003 13:41:25 -0400


[Barry Pederson]
> >>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.

> Guido van Rossum wrote:
> > I can't reproduce your test failure of checkFullTimeStamp() in
> > test_timestamp.py.  But looking at the code in _timestamp.c, I get the
> > feeling that it is utterly incomprehensible, so I wouldn't be
> > surprised there's a bug.
> > 
> > Is there anyone around who understands the conversions in _timestamp.c?
> 
> I think so. First, _timestamp.c *only* deals with utc. So I can't imagine
> that it contains a DST bug.

Fair enough.  But it seems to me that the unit test that fails for
Barry isn't necessarily right, because of the way it juggles timezone
offsets.

--Guido van Rossum (home page: http://www.python.org/~guido/)