Author martin.panter
Recipients akira, belopolsky, koobs, martin.panter, python-dev, stub, tim.peters, vstinner
Date 2016-07-25.05:09:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469423377.54.0.0268153762411.issue24773@psf.upfronthosting.co.za>
In-reply-to
Content
I _think_ the system_transitions failure only happens for 32 bit (have to test more to be sure). (My 32-bit environment is lacking many libraries compared to main 64-bit environment, but still uses the same filesystem etc.) First system_transitions failure with today’s new code:

FAIL: test_system_transitions (test.datetimetester.ZoneInfoTest[posix/Africa/Casablanca])
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 4760, in test_system_transitions
    self.assertEquivDatetimes(sdt, tzdt)
  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 4687, in assertEquivDatetimes
    (b.replace(tzinfo=None), b.fold, id(b.tzinfo)))
AssertionError: Tuples differ: (datetime.datetime(2037, 10, 11, 3, 0), 0, 140273296) != (datetime.datetime(2037, 10, 11, 2, 0, fold=1), 1, 140273296)

First differing element 0:
datetime.datetime(2037, 10, 11, 3, 0)
datetime.datetime(2037, 10, 11, 2, 0, fold=1)

- (datetime.datetime(2037, 10, 11, 3, 0), 0, 140273296)
?                                  ^      ^

+ (datetime.datetime(2037, 10, 11, 2, 0, fold=1), 1, 140273296)
?                                  ^   ++++++++   ^

Your CasablancaTest gave the same failure:
======================================================================
FAIL: test_system_transitions (test.datetimetester.CasablancaTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 4760, in test_system_transitions
    self.assertEquivDatetimes(sdt, tzdt)
  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 4687, in assertEquivDatetimes
    (b.replace(tzinfo=None), b.fold, id(b.tzinfo)))
AssertionError: Tuples differ: (datetime.datetime(2037, 10, 11, 3, 0), 0, 140273296) != (datetime.datetime(2037, 10, 11, 2, 0, fold=1), 1, 140273296)

First differing element 0:
datetime.datetime(2037, 10, 11, 3, 0)
datetime.datetime(2037, 10, 11, 2, 0, fold=1)

- (datetime.datetime(2037, 10, 11, 3, 0), 0, 140273296)
?                                  ^      ^

+ (datetime.datetime(2037, 10, 11, 2, 0, fold=1), 1, 140273296)
?                                  ^   ++++++++   ^
History
Date User Action Args
2016-07-25 05:09:37martin.pantersetrecipients: + martin.panter, tim.peters, belopolsky, vstinner, stub, akira, python-dev, koobs
2016-07-25 05:09:37martin.pantersetmessageid: <1469423377.54.0.0268153762411.issue24773@psf.upfronthosting.co.za>
2016-07-25 05:09:37martin.panterlinkissue24773 messages
2016-07-25 05:09:37martin.pantercreate