Control: tags -1 + patch
The attached patch simply skips the tests which use timezone abbreviations that were dropped from tzdata 2017a-1.
Description: Skip tests using deprecated timezone abbreviations Several timezone abbreviations were dropped from tzdata 2017a-1. Bug-Debian: https://bugs.debian.org/858133 Author: Graham Inggs <gin...@debian.org> Last-Update: 2017-03-28 --- a/pytz/tests/test_tzinfo.py +++ b/pytz/tests/test_tzinfo.py @@ -488,6 +488,7 @@ } +''' class NoumeaHistoryStartTestCase(USEasternDSTStartTestCase): # Noumea adopted a whole hour offset in 1912. Previously # it was 11 hours, 5 minutes and 48 seconds off UTC. However, @@ -563,6 +564,7 @@ 'utcoffset': timedelta(hours=14), 'dst': timedelta(hours=1), } +''' class ReferenceUSEasternDSTStartTestCase(USEasternDSTStartTestCase): @@ -610,8 +612,8 @@ # Actually +00:19:32, but Python datetime rounds this self.assertEqual(loc_time.strftime('%Z%z'), 'NST+0120') - loc_time = loc_tz.localize(datetime(1940, 5, 10, 0, 0, 0)) - self.assertEqual(loc_time.strftime('%Z%z'), 'NET+0020') +# loc_time = loc_tz.localize(datetime(1940, 5, 10, 0, 0, 0)) +# self.assertEqual(loc_time.strftime('%Z%z'), 'NET+0020') loc_time = loc_tz.localize(datetime(1940, 5, 20, 0, 0, 0)) self.assertEqual(loc_time.strftime('%Z%z'), 'CEST+0200')