Comment 6 for bug 885163

Revision history for this message
StarSteve (info-astroworld) wrote :

I go with you, but still confused, maybe I'm dense:
search in \python2.x\lib\test\test_datetime.py for 1439 and you may understand why...
e.g.

*** 2031,...
def test_utc_offset_out_of_bounds(self):
def test_tzinfo_classes(self):

*** 2746,2752 ****
        # dst() at the edge.
        self.assertEqual(cls(1,1,1, tzinfo=DST(1439)).timetuple().tm_isdst, 1)
        self.assertEqual(cls(1,1,1, tzinfo=DST(-1439)).timetuple().tm_isdst, 1)

        # dst() out of range.
        self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(1440)).timetuple)
        self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(-1440)).timetuple)

if u can - plz explain...