This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年04月20日 13:53 by vstinner, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| time_aest.patch | vstinner, 2011年11月24日 15:27 | review | ||
| Messages (14) | |||
|---|---|---|---|
| msg134153 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年04月20日 13:53 | |
test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": 'AEST-10AEDT-11,M10.5.0,M3.5.0' timezone becomes 'EST'. ====================================================================== FAIL: test_tzset (test.test_time.TimeTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_time.py", line 209, in test_tzset self.assertTrue(time.tzname[0] == 'AEST', str(time.tzname[0])) AssertionError: False is not true : EST ---------------------------------------------------------------------- http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%207.2%203.x/builds/1705/steps/test/logs/stdio See also http://en.wikipedia.org/wiki/Time_in_Australia |
|||
| msg134174 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2011年04月20日 19:31 | |
On Wed, Apr 20, 2011 at 9:53 AM, STINNER Victor <report@bugs.python.org> wrote: .. > test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": 'AEST-10AEDT-11,M10.5.0,M3.5.0' timezone becomes 'EST'. I was able to reproduce this error by faking a file named 'AEST-10AEDT-11,M10.5.0,M3.5.0' in /usr/share/zoneinfo/ on Mac OS X. (As far as I know, OSX is not that different from BSD with respect to basic posix interfaces.) $ cd /usr/share/zoneinfo/ $ sudo cp EST AEST-10AEDT-11,M10.5.0,M3.5.0 Is it possible that the buildbot has such a file? What I find strange is that autoconf logic tests for working tzset using exactly the same TZ spec: """ putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); tzset(); if (localtime(&groundhogday)->tm_hour != 11) exit(1); #if HAVE_TZNAME if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) exit(1); #endif """ See 'configure' script. In other words, if TZ=AEST-10AEDT-11,M10.5.0,M3.5.0 breaks tzset, this should be detected at the configure stage and the tzset tests should be skipped. Is there a way to force configure run on the bot? |
|||
| msg148262 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年11月24日 15:17 | |
Issue #13313 has been marked as a duplicate of this issue. Interesting message from flox: "Maybe it is related. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810 Ambiguous timezone names (AEST vs EST)" |
|||
| msg148263 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年11月24日 15:18 | |
> Is there a way to force configure run on the bot? ./configure is run for each build of each buildbot. |
|||
| msg148265 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年11月24日 15:27 | |
I don't see this issue as a bug in Python, but just that the timezone database is different on some OSes. Can't we just accept both names, AEST and EST? Attached patch changes test_time to tolerate EST name for 'AEST-10AEDT-11,M10.5.0,M3.5.0' ("Victoria") time zone.
|
|||
| msg148892 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年12月05日 22:06 | |
Alex ? Florent ? |
|||
| msg149004 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2011年12月07日 23:32 | |
New changeset c143e66e5efe by Victor Stinner in branch '3.2': Issue #11886: workaround an OS bug (time zone data) in test_time http://hg.python.org/cpython/rev/c143e66e5efe New changeset c7638be1e430 by Victor Stinner in branch 'default': (Merge 3.2) Issue #11886: workaround an OS bug (time zone data) in test_time http://hg.python.org/cpython/rev/c7638be1e430 New changeset 2bca2cee79a1 by Victor Stinner in branch '2.7': Issue #11886: workaround an OS bug (time zone data) in test_time http://hg.python.org/cpython/rev/2bca2cee79a1 |
|||
| msg149120 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年12月09日 20:28 | |
The FreeBSD 7.2 3.x buildbot is green. |
|||
| msg149126 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2011年12月09日 21:25 | |
thank you for this fix. I agree a posteriori. |
|||
| msg149153 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2011年12月10日 13:37 | |
New changeset e37a7dc8944e by Victor Stinner in branch 'default': Issue #11886: Fix also test_time for the non-DST timezone name (EST/AEST) http://hg.python.org/cpython/rev/e37a7dc8944e |
|||
| msg149263 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2011年12月12日 01:06 | |
Hum, it's still not ok: ====================================================================== FAIL: test_tzset (test.test_time.TimeTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_time.py", line 264, in test_tzset self.assertEqual(time.timezone, -36000) AssertionError: 18000 != -36000 |
|||
| msg149463 - (view) | Author: Charles-François Natali (neologix) * (Python committer) | Date: 2011年12月14日 18:33 | |
Another failure on a 2.7 FreeBSD buildbot: """ test test_time failed -- Traceback (most recent call last): File "/usr/home/db3l/buildarea/2.7.bolen-freebsd7/build/Lib/test/test_time.py", line 193, in test_tzset self.assertTrue(time.tzname[1] == 'AEDT', str(time.tzname[1])) AssertionError: EDT """ http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2 2.7/builds/859/steps/test/logs/stdio |
|||
| msg178891 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2013年01月03日 01:53 | |
What is the status of this issue? Was the failure reproduced recently? |
|||
| msg221853 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年06月29日 15:51 | |
Can this be closed as "out of date"? |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:16 | admin | set | github: 56095 |
| 2014年06月29日 16:05:59 | vstinner | set | status: open -> closed resolution: fixed |
| 2014年06月29日 15:51:46 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg221853 |
| 2013年01月03日 01:53:25 | vstinner | set | messages: + msg178891 |
| 2011年12月14日 18:33:30 | neologix | set | nosy:
+ neologix messages: + msg149463 |
| 2011年12月12日 01:06:46 | vstinner | set | status: closed -> open resolution: fixed -> (no value) messages: + msg149263 |
| 2011年12月10日 13:37:58 | python-dev | set | messages: + msg149153 |
| 2011年12月09日 21:25:49 | flox | set | messages: + msg149126 |
| 2011年12月09日 20:28:06 | vstinner | set | status: open -> closed resolution: fixed messages: + msg149120 |
| 2011年12月07日 23:32:59 | python-dev | set | nosy:
+ python-dev messages: + msg149004 |
| 2011年12月05日 22:06:15 | vstinner | set | messages: + msg148892 |
| 2011年11月24日 15:27:34 | vstinner | set | files:
+ time_aest.patch keywords: + patch messages: + msg148265 |
| 2011年11月24日 15:18:35 | vstinner | set | messages: + msg148263 |
| 2011年11月24日 15:17:20 | vstinner | set | nosy:
+ flox messages: + msg148262 |
| 2011年04月20日 19:31:11 | belopolsky | set | messages: + msg134174 |
| 2011年04月20日 13:53:12 | vstinner | create | |