diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2016-08-12 23:08:15 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2016-08-12 23:08:15 (GMT) |
commit | 10c2dd216a89f74bc607dea5a8a6b084d841578d (patch) | |
tree | f083342d0edd77c7be032b80ec865a54d2b5240c /Lib/test/datetimetester.py | |
parent | 3f63483a30e87d8df4a815db18bf227c671f9272 (diff) | |
download | cpython-10c2dd216a89f74bc607dea5a8a6b084d841578d.zip cpython-10c2dd216a89f74bc607dea5a8a6b084d841578d.tar.gz cpython-10c2dd216a89f74bc607dea5a8a6b084d841578d.tar.bz2 |
Issue #24773: Skip system tests for transitions in year 2037 and later.
Diffstat (limited to 'Lib/test/datetimetester.py')
-rw-r--r-- | Lib/test/datetimetester.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index 65eae72..5413bca 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -4766,9 +4766,11 @@ class ZoneInfoTest(unittest.TestCase): try: _time.tzset() for udt, shift in tz.transitions(): - if (self.zonename == 'Europe/Tallinn' and udt.date() == date(1999, 10, 31) or - self.zonename.endswith(('Casablanca', 'El_Aaiun')) and - udt.date() == date(2037, 10, 4)): + if udt.year >= 2037: + # System support for times around the end of 32-bit time_t + # and later is flaky on many systems. + break + if self.zonename == 'Europe/Tallinn' and udt.date() == date(1999, 10, 31): print("Skip %s %s transition" % (self.zonename, udt)) continue s0 = (udt - datetime(1970, 1, 1)) // SEC |