[Zope3-dev] RC 3 for Zope 3.1 needed
Stuart Bishop
stuart at stuartbishop.net
Tue Sep 6 22:49:02 EDT 2005
Fred Drake wrote:
> On 9/6/05, Stuart Bishop <stuart at stuartbishop.net> wrote:
>
>>Is this something I need to be aware of? Because I'm not ;)
>
>
> This test in the Zope 3 trunk is failing:
>
> def testParseTimeZoneNames(self):
> dt = self.format.parse('01.01.2003 09:48 EST', 'dd.MM.yyyy HH:mm zzz')
> self.assertEqual(dt.tzinfo.utcoffset(dt), datetime.timedelta(hours=-6))
> self.assertEqual(dt.tzinfo.zone, 'EST')
> # I think this is wrong due to a bug in pytz
> self.assertEqual(dt.tzinfo.tzname(dt), 'CST')
>
> dt = self.format.parse('01.01.2003 09:48 US/Eastern',
> 'dd.MM.yyyy HH:mm zzzz')
> self.assertEqual(dt.tzinfo.utcoffset(dt), datetime.timedelta(hours=-5))
> self.assertEqual(dt.tzinfo.zone, 'US/Eastern')
> # I think this is wrong due to a bug in pytz
> self.assertEqual(dt.tzinfo.tzname(dt), 'EST')
>
> This is from src/zope/i18n/tests/test_formats.py, line 304. This
> failed both before and after your latest update (sometime in the last
> few hours).
I talked to Gary about this. I've fixed the i18n code and tests, and am just
adding another test (prove historical timezone handling) before committing.
--
Stuart Bishop <stuart at stuartbishop.net>
http://www.stuartbishop.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20050907/6fe3bd8f/signature.bin
More information about the Zope3-dev
mailing list