sdispater / pendulum

Python datetimes made easy
https://pendulum.eustace.io
MIT License
6.25k stars 387 forks source link

Tests fail with pytzdata==2018.8 or 2018.9 #358

Closed altendky closed 5 years ago

altendky commented 5 years ago

When working #357 I noticed a test was failing based on updated libraries since the last Travis build on master. It seems that pytzdata==2018.8 broke test_timezones_are_loadable().

https://github.com/sdispater/pytzdata/commit/af119bfa833acc4a548f64779d6683748bd8acc0

https://github.com/sdispater/pendulum/blob/d0eebd906e63f99ca9603f7d57b0f6d09ce75940/tests/tz/test_timezones.py#L12-L16

Specifically, it fails for 'Africa/Casablanca'. I'll try to take a look at this and see if I can understand the issue.

test results ```python ~/pendulum   master  poetry run python -m pytest tests ================================================= test session starts ================================================== platform linux -- Python 3.7.2, pytest-3.10.1, py-1.8.0, pluggy-0.9.0 rootdir: /home/altendky/pendulum, inifile: plugins: cov-2.6.1 collected 1097 items tests/test_helpers.py ................... [ 1%] tests/test_main.py . [ 1%] tests/test_parsing.py ...... [ 2%] tests/date/test_add.py ................ [ 3%] tests/date/test_behavior.py ........... [ 4%] tests/date/test_comparison.py ........................ [ 7%] tests/date/test_construct.py .. [ 7%] tests/date/test_day_of_week_modifiers.py ..................................................... [ 12%] tests/date/test_diff.py .................................................................... [ 18%] tests/date/test_fluent_setters.py ... [ 18%] tests/date/test_getters.py .............. [ 19%] tests/date/test_start_end_of.py ......................................... [ 23%] tests/date/test_strings.py ........ [ 24%] tests/date/test_sub.py ............... [ 25%] tests/datetime/test_add.py ................................ [ 28%] tests/datetime/test_behavior.py ......................... [ 30%] tests/datetime/test_comparison.py ................................... [ 34%] tests/datetime/test_construct.py ................ [ 35%] tests/datetime/test_create_from_timestamp.py ... [ 35%] tests/datetime/test_day_of_week_modifiers.py ....................................................... [ 40%] tests/datetime/test_diff.py .................................................................................... [ 48%] .............................................. [ 52%] tests/datetime/test_fluent_setters.py ................ [ 54%] tests/datetime/test_from_format.py .......................................................... [ 59%] tests/datetime/test_getters.py ....................................... [ 62%] tests/datetime/test_naive.py ......... [ 63%] tests/datetime/test_start_end_of.py ............................................ [ 67%] tests/datetime/test_strings.py ........................ [ 69%] tests/datetime/test_sub.py ............................ [ 72%] tests/datetime/test_timezone.py ... [ 72%] tests/duration/test_add_sub.py ....... [ 73%] tests/duration/test_arithmetic.py ... [ 73%] tests/duration/test_behavior.py .. [ 73%] tests/duration/test_construct.py ............ [ 74%] tests/duration/test_in_methods.py ..... [ 75%] tests/duration/test_in_words.py .......... [ 76%] tests/duration/test_total_methods.py ..... [ 76%] tests/formatting/test_formatter.py ..................... [ 78%] tests/helpers/test_local_time.py .. [ 78%] tests/localization/test_da.py . [ 78%] tests/localization/test_de.py . [ 79%] tests/localization/test_es.py . [ 79%] tests/localization/test_fa.py . [ 79%] tests/localization/test_fo.py . [ 79%] tests/localization/test_fr.py .. [ 79%] tests/localization/test_ko.py . [ 79%] tests/localization/test_lt.py . [ 79%] tests/parsing/test_parse_iso8601.py ... [ 79%] tests/parsing/test_parsing.py .................... [ 81%] tests/parsing/test_parsing_duration.py ...... [ 82%] tests/period/test_add_subtract.py ..... [ 82%] tests/period/test_arithmetic.py ... [ 83%] tests/period/test_behavior.py .. [ 83%] tests/period/test_construct.py ........ [ 83%] tests/period/test_hashing.py .. [ 84%] tests/period/test_range.py .......... [ 85%] tests/time/test_add.py ............ [ 86%] tests/time/test_behavior.py ..... [ 86%] tests/time/test_comparison.py .................... [ 88%] tests/time/test_construct.py .. [ 88%] tests/time/test_diff.py .................................................... [ 93%] tests/time/test_fluent_setters.py . [ 93%] tests/time/test_strings.py ...... [ 93%] tests/time/test_sub.py ............. [ 95%] tests/tz/test_helpers.py ... [ 95%] tests/tz/test_local_timezone.py ..s [ 95%] tests/tz/test_timezone.py ..................................... [ 99%] tests/tz/test_timezones.py .F [ 99%] tests/tz/zoneinfo/test_posix_timezone.py ... [ 99%] tests/tz/zoneinfo/test_reader.py ..... [100%] ======================================================= FAILURES ======================================================= _____________________________________________ test_timezones_are_loadable ______________________________________________ spec = '' def posix_spec(spec): # type: (str) -> PosixTimezone try: > return _posix_spec(spec) pendulum/tz/zoneinfo/posix_timezone.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ spec = '' def _posix_spec(spec): # type: (str) -> PosixTimezone m = _spec.match(spec) if not m: > raise ValueError("Invalid posix spec") E ValueError: Invalid posix spec pendulum/tz/zoneinfo/posix_timezone.py:47: ValueError During handling of the above exception, another exception occurred: def test_timezones_are_loadable(): zones = pendulum.timezones for zone in zones: > pendulum.timezone(zone) tests/tz/test_timezones.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pendulum/tz/__init__.py:36: in timezone tz = _Timezone(name, extended=extended) pendulum/tz/timezone.py:30: in __init__ tz = read(name, extend=extended) pendulum/tz/zoneinfo/__init__.py:9: in read return Reader(extend=extend).read_for(name) pendulum/tz/zoneinfo/reader.py:46: in read_for return self.read(file_path) pendulum/tz/zoneinfo/reader.py:58: in read return self._parse(fd) pendulum/tz/zoneinfo/reader.py:113: in _parse trule = self._parse_posix_tz(fd) pendulum/tz/zoneinfo/reader.py:211: in _parse_posix_tz return posix_spec(s) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ spec = '' def posix_spec(spec): # type: (str) -> PosixTimezone try: return _posix_spec(spec) except ValueError: > raise InvalidPosixSpec(spec) E pendulum.tz.zoneinfo.exceptions.InvalidPosixSpec: Invalid POSIX spec: pendulum/tz/zoneinfo/posix_timezone.py:41: InvalidPosixSpec =================================================== warnings summary =================================================== tests/formatting/test_formatter.py:241 /home/altendky/pendulum/tests/formatting/test_formatter.py:241: DeprecationWarning: invalid escape sequence \[ assert f.format(d, "[YYYY] YYYY \[YYYY\]") == "YYYY 2016 [2016]" tests/formatting/test_formatter.py:242 /home/altendky/pendulum/tests/formatting/test_formatter.py:242: DeprecationWarning: invalid escape sequence \D assert f.format(d, "\D D \\\D") == "D 28 \\28" tests/datetime/test_from_format.py::test_from_format_with_escaped_elements /home/altendky/pendulum/pendulum/formatting/formatter.py:406: DeprecationWarning: Flags not at the start of the expression '(?P\\d{1,4}|\\d{' (truncated) if not re.match(pattern, time): tests/datetime/test_from_format.py::test_from_format[Thursday 25th December 1975 02:15:16 PM -05:00-dddd Do MMMM YYYY hh:mm:ss A Z-1975-12-25T14:15:16-05:00-None] /home/altendky/pendulum/pendulum/formatting/formatter.py:406: DeprecationWarning: Flags not at the start of the expression '(?PSunday|Mond' (truncated) if not re.match(pattern, time): -- Docs: https://docs.pytest.org/en/latest/warnings.html ============================= 1 failed, 1095 passed, 1 skipped, 4 warnings in 6.92 seconds ============================= ```

Forgive my bypassing of poetry while messing with the pytz[data] versions and reporting here. I haven't used poetry really yet.

package versions ```python ✘  ~/pendulum   master  poetry run python -m pip freeze appdirs==1.4.3 aspy.yaml==1.2.0 atomicwrites==1.3.0 attrs==19.1.0 Babel==2.6.0 black==18.9b0 CacheControl==0.12.5 cachy==0.2.0 certifi==2019.3.9 cfgv==1.5.0 chardet==3.0.4 cleo==0.6.8 Click==7.0 coverage==4.5.3 filelock==3.0.10 html5lib==1.0.1 identify==1.4.0 idna==2.8 importlib-metadata==0.8 jsonschema==3.0.1 lockfile==0.12.2 more-itertools==5.0.0 msgpack==0.6.1 nodeenv==1.3.3 pastel==0.1.0 pendulum==2.0.4 pkginfo==1.5.0.1 pluggy==0.9.0 poetry==0.12.11 pre-commit==1.14.4 py==1.8.0 pylev==1.3.0 pyparsing==2.3.1 pyrsistent==0.14.11 pytest==3.10.1 pytest-cov==2.6.1 python-dateutil==2.8.0 pytz==2018.9 pytzdata==2018.8 PyYAML==3.13 requests==2.21.0 requests-toolbelt==0.8.0 shellingham==1.3.0 six==1.12.0 toml==0.10.0 tomlkit==0.5.3 tox==3.7.0 urllib3==1.24.1 virtualenv==16.4.3 webencodings==0.5.1 zipp==0.3.3 ```
altendky commented 5 years ago

My best guess so far is that the Casablanca file previously ended with a single \n but now has two. In Reader._parse_posix_tz() with pytzdata==2018.7 '\n<+01>-1\n' is read from the file thus passing '<+01>-1' to posix_spec(). With 2018.8 it instead reads out '\n\n' which strips to '' resulting in the InvalidPosixSpec exception.

https://github.com/sdispater/pendulum/blob/0e91f165a4ac6ef68d7e1119d1269d3fea801a8d/pendulum/tz/zoneinfo/reader.py#L203-L211

altendky commented 5 years ago
Casablanca hex dump from 2018.7 ``` 00000000: 545a 6966 3200 0000 0000 0000 0000 0000 TZif2........... 00000010: 0000 0000 0000 0004 0000 0004 0000 0000 ................ 00000020: 0000 0038 0000 0004 0000 000c 9651 f99c ...8.........Q.. 00000030: c6ff 1480 c758 ac70 c7d9 ed80 d2a1 32f0 .....X.p......2. 00000040: db35 a400 dbee 27f0 fb25 7240 fbc2 ef70 .5....'..%r@...p 00000050: 086b 8480 08c6 6df0 0be8 0c00 0c61 47f0 .k....m......aG. 00000060: 0dc9 3f80 0e8e f270 0fd3 5180 1027 a370 ..?....p..Q..'.p 00000070: 1ab7 a600 1e18 6ff0 4841 e680 48bb 2270 ......o.HA..H."p 00000080: 4a23 1a00 4a8d d570 4bdc c080 4c5d e570 J#..J..pK...L].p 00000090: 4d97 b880 4e34 8cf0 4f9c a0a0 5008 bba0 M...N4..O...P... 000000a0: 5031 9a20 5067 a7a0 517c 82a0 51d8 cba0 P1. Pg..Q|..Q... 000000b0: 5205 9ea0 526c 73a0 5337 7aa0 53ae 21a0 R...Rls.S7z.S.!. 000000c0: 53dc 4620 544c 55a0 5517 5ca0 557c e020 S.F TLU.U.\.U|. 000000d0: 55ab 04a0 562c 37a0 56f7 3ea0 5753 87a0 U...V,7.V.>.WS.. 000000e0: 5781 ac20 5815 5420 58d7 20a0 5920 f4a0 W.. X.T X. .Y .. 000000f0: 5958 53a0 59f5 3620 5ab7 02a0 5af7 9c20 YXS.Y.6 Z...Z.. 00000100: 5b25 c0a0 5bd3 9c70 7fff ffff 0201 0201 [%..[..p........ 00000110: 0201 0201 0201 0201 0201 0201 0203 0201 ................ 00000120: 0201 0201 0201 0201 0201 0201 0201 0201 ................ 00000130: 0201 0201 0201 0201 0201 0201 0201 0201 ................ 00000140: 0201 0303 ffff f8e4 0000 0000 0e10 0104 ................ 00000150: 0000 0000 0008 0000 0e10 0004 4c4d 5400 ............LMT. 00000160: 2b30 3100 2b30 3000 0000 0000 0000 0000 +01.+00......... 00000170: 545a 6966 3200 0000 0000 0000 0000 0000 TZif2........... 00000180: 0000 0000 0000 0004 0000 0004 0000 0000 ................ 00000190: 0000 0038 0000 0004 0000 000c ffff ffff ...8............ 000001a0: 9651 f99c ffff ffff c6ff 1480 ffff ffff .Q.............. 000001b0: c758 ac70 ffff ffff c7d9 ed80 ffff ffff .X.p............ 000001c0: d2a1 32f0 ffff ffff db35 a400 ffff ffff ..2......5...... 000001d0: dbee 27f0 ffff ffff fb25 7240 ffff ffff ..'......%r@.... 000001e0: fbc2 ef70 0000 0000 086b 8480 0000 0000 ...p.....k...... 000001f0: 08c6 6df0 0000 0000 0be8 0c00 0000 0000 ..m............. 00000200: 0c61 47f0 0000 0000 0dc9 3f80 0000 0000 .aG.......?..... 00000210: 0e8e f270 0000 0000 0fd3 5180 0000 0000 ...p......Q..... 00000220: 1027 a370 0000 0000 1ab7 a600 0000 0000 .'.p............ 00000230: 1e18 6ff0 0000 0000 4841 e680 0000 0000 ..o.....HA...... 00000240: 48bb 2270 0000 0000 4a23 1a00 0000 0000 H."p....J#...... 00000250: 4a8d d570 0000 0000 4bdc c080 0000 0000 J..p....K....... 00000260: 4c5d e570 0000 0000 4d97 b880 0000 0000 L].p....M....... 00000270: 4e34 8cf0 0000 0000 4f9c a0a0 0000 0000 N4......O....... 00000280: 5008 bba0 0000 0000 5031 9a20 0000 0000 P.......P1. .... 00000290: 5067 a7a0 0000 0000 517c 82a0 0000 0000 Pg......Q|...... 000002a0: 51d8 cba0 0000 0000 5205 9ea0 0000 0000 Q.......R....... 000002b0: 526c 73a0 0000 0000 5337 7aa0 0000 0000 Rls.....S7z..... 000002c0: 53ae 21a0 0000 0000 53dc 4620 0000 0000 S.!.....S.F .... 000002d0: 544c 55a0 0000 0000 5517 5ca0 0000 0000 TLU.....U.\..... 000002e0: 557c e020 0000 0000 55ab 04a0 0000 0000 U|. ....U....... 000002f0: 562c 37a0 0000 0000 56f7 3ea0 0000 0000 V,7.....V.>..... 00000300: 5753 87a0 0000 0000 5781 ac20 0000 0000 WS......W.. .... 00000310: 5815 5420 0000 0000 58d7 20a0 0000 0000 X.T ....X. ..... 00000320: 5920 f4a0 0000 0000 5958 53a0 0000 0000 Y ......YXS..... 00000330: 59f5 3620 0000 0000 5ab7 02a0 0000 0000 Y.6 ....Z....... 00000340: 5af7 9c20 0000 0000 5b25 c0a0 0000 0000 Z.. ....[%...... 00000350: 5bd3 9c70 0000 0000 7fff ffff 0201 0201 [..p............ 00000360: 0201 0201 0201 0201 0201 0201 0203 0201 ................ 00000370: 0201 0201 0201 0201 0201 0201 0201 0201 ................ 00000380: 0201 0201 0201 0201 0201 0201 0201 0201 ................ 00000390: 0201 0303 ffff f8e4 0000 0000 0e10 0104 ................ 000003a0: 0000 0000 0008 0000 0e10 0004 4c4d 5400 ............LMT. 000003b0: 2b30 3100 2b30 3000 0000 0000 0000 0000 +01.+00......... 000003c0: 0a3c 2b30 313e 2d31 0a .<+01>-1. ```
000003a0: 0000 0000 0008 0000 0e10 0004 4c4d 5400  ............LMT.
000003b0: 2b30 3100 2b30 3000 0000 0000 0000 0000  +01.+00.........
000003c0: 0a3c 2b30 313e 2d31 0a                   .<+01>-1.
Casablanca hex dump from 2018.8 ``` 00000000: 545a 6966 3200 0000 0000 0000 0000 0000 TZif2........... 00000010: 0000 0000 0000 0005 0000 0005 0000 0000 ................ 00000020: 0000 005f 0000 0005 0000 000c 9651 f99c ..._.........Q.. 00000030: c6ff 1480 c758 ac70 c7d9 ed80 d2a1 32f0 .....X.p......2. 00000040: db35 a400 dbee 27f0 fb25 7240 fbc2 ef70 .5....'..%r@...p 00000050: 086b 8480 08c6 6df0 0be8 0c00 0c61 47f0 .k....m......aG. 00000060: 0dc9 3f80 0e8e f270 0fd3 5180 1027 a370 ..?....p..Q..'.p 00000070: 1ab7 a600 1e18 6ff0 4841 e680 48bb 2270 ......o.HA..H."p 00000080: 4a23 1a00 4a8d d570 4bdc c080 4c5d e570 J#..J..pK...L].p 00000090: 4d97 b880 4e34 8cf0 4f9c a0a0 5008 bba0 M...N4..O...P... 000000a0: 5031 9a20 5067 a7a0 517c 82a0 51d8 cba0 P1. Pg..Q|..Q... 000000b0: 5205 9ea0 526c 73a0 5337 7aa0 53ae 21a0 R...Rls.S7z.S.!. 000000c0: 53dc 4620 544c 55a0 5517 5ca0 557c e020 S.F TLU.U.\.U|. 000000d0: 55ab 04a0 562c 37a0 56f7 3ea0 5753 87a0 U...V,7.V.>.WS.. 000000e0: 5781 ac20 5815 5420 58d7 20a0 5920 f4a0 W.. X.T X. .Y .. 000000f0: 5958 53a0 59f5 3620 5ab7 02a0 5af7 9c20 YXS.Y.6 Z...Z.. 00000100: 5b25 c0a0 5bd5 1820 5cce 43a0 5cfc 6820 [%..[.. \.C.\.h 00000110: 5e9b b0a0 5ec9 d520 6072 5820 60a0 7ca0 ^...^.. `rX `.|. 00000120: 623f c520 6277 2420 6416 6ca0 6444 9120 b?. bw$ d.l.dD. 00000130: 65ed 1420 661b 38a0 67ba 8120 67f1 e020 e.. f.8.g.. g.. 00000140: 6991 28a0 69bf 4d20 6b67 d020 6b95 f4a0 i.(.i.M kg. k... 00000150: 6d35 3d20 6d63 61a0 6f0b e4a0 6f3a 0920 m5= mca.o...o:. 00000160: 70d9 51a0 7110 b0a0 72af f920 72de 1da0 p.Q.q...r.. r... 00000170: 7486 a0a0 74b4 c520 7654 0da0 768b 6ca0 t...t.. vT..v.l. 00000180: 782a b520 7858 d9a0 79f8 2220 7a2f 8120 x*. xX..y." z/. 00000190: 7bce c9a0 7bfc ee20 7da5 7120 7dd3 95a0 {...{.. }.q }... 000001a0: 7f72 de20 7faa 3d20 0201 0201 0201 0201 .r. ..= ........ 000001b0: 0201 0201 0201 0201 0203 0201 0201 0201 ................ 000001c0: 0201 0201 0201 0201 0201 0201 0201 0201 ................ 000001d0: 0201 0201 0201 0201 0201 0201 0201 0304 ................ 000001e0: 0304 0304 0304 0304 0304 0304 0304 0304 ................ 000001f0: 0304 0304 0304 0304 0304 0304 0304 0304 ................ 00000200: 0304 0304 0304 03ff fff8 e400 0000 000e ................ 00000210: 1001 0400 0000 0000 0800 000e 1000 0400 ................ 00000220: 0000 0001 084c 4d54 002b 3031 002b 3030 .....LMT.+01.+00 00000230: 0000 0000 0000 0000 0000 0054 5a69 6632 ...........TZif2 00000240: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000250: 0000 0500 0000 0500 0000 0000 0000 6000 ..............`. 00000260: 0000 0500 0000 0cff ffff ff96 51f9 9cff ............Q... 00000270: ffff ffc6 ff14 80ff ffff ffc7 58ac 70ff ............X.p. 00000280: ffff ffc7 d9ed 80ff ffff ffd2 a132 f0ff .............2.. 00000290: ffff ffdb 35a4 00ff ffff ffdb ee27 f0ff ....5........'.. 000002a0: ffff fffb 2572 40ff ffff fffb c2ef 7000 ....%r@.......p. 000002b0: 0000 0008 6b84 8000 0000 0008 c66d f000 ....k........m.. 000002c0: 0000 000b e80c 0000 0000 000c 6147 f000 ............aG.. 000002d0: 0000 000d c93f 8000 0000 000e 8ef2 7000 .....?........p. 000002e0: 0000 000f d351 8000 0000 0010 27a3 7000 .....Q......'.p. 000002f0: 0000 001a b7a6 0000 0000 001e 186f f000 .............o.. 00000300: 0000 0048 41e6 8000 0000 0048 bb22 7000 ...HA......H."p. 00000310: 0000 004a 231a 0000 0000 004a 8dd5 7000 ...J#......J..p. 00000320: 0000 004b dcc0 8000 0000 004c 5de5 7000 ...K.......L].p. 00000330: 0000 004d 97b8 8000 0000 004e 348c f000 ...M.......N4... 00000340: 0000 004f 9ca0 a000 0000 0050 08bb a000 ...O.......P.... 00000350: 0000 0050 319a 2000 0000 0050 67a7 a000 ...P1. ....Pg... 00000360: 0000 0051 7c82 a000 0000 0051 d8cb a000 ...Q|......Q.... 00000370: 0000 0052 059e a000 0000 0052 6c73 a000 ...R.......Rls.. 00000380: 0000 0053 377a a000 0000 0053 ae21 a000 ...S7z.....S.!.. 00000390: 0000 0053 dc46 2000 0000 0054 4c55 a000 ...S.F ....TLU.. 000003a0: 0000 0055 175c a000 0000 0055 7ce0 2000 ...U.\.....U|. . 000003b0: 0000 0055 ab04 a000 0000 0056 2c37 a000 ...U.......V,7.. 000003c0: 0000 0056 f73e a000 0000 0057 5387 a000 ...V.>.....WS... 000003d0: 0000 0057 81ac 2000 0000 0058 1554 2000 ...W.. ....X.T . 000003e0: 0000 0058 d720 a000 0000 0059 20f4 a000 ...X. .....Y ... 000003f0: 0000 0059 5853 a000 0000 0059 f536 2000 ...YXS.....Y.6 . 00000400: 0000 005a b702 a000 0000 005a f79c 2000 ...Z.......Z.. . 00000410: 0000 005b 25c0 a000 0000 005b d518 2000 ...[%......[.. . 00000420: 0000 005c ce43 a000 0000 005c fc68 2000 ...\.C.....\.h . 00000430: 0000 005e 9bb0 a000 0000 005e c9d5 2000 ...^.......^.. . 00000440: 0000 0060 7258 2000 0000 0060 a07c a000 ...`rX ....`.|.. 00000450: 0000 0062 3fc5 2000 0000 0062 7724 2000 ...b?. ....bw$ . 00000460: 0000 0064 166c a000 0000 0064 4491 2000 ...d.l.....dD. . 00000470: 0000 0065 ed14 2000 0000 0066 1b38 a000 ...e.. ....f.8.. 00000480: 0000 0067 ba81 2000 0000 0067 f1e0 2000 ...g.. ....g.. . 00000490: 0000 0069 9128 a000 0000 0069 bf4d 2000 ...i.(.....i.M . 000004a0: 0000 006b 67d0 2000 0000 006b 95f4 a000 ...kg. ....k.... 000004b0: 0000 006d 353d 2000 0000 006d 6361 a000 ...m5= ....mca.. 000004c0: 0000 006f 0be4 a000 0000 006f 3a09 2000 ...o.......o:. . 000004d0: 0000 0070 d951 a000 0000 0071 10b0 a000 ...p.Q.....q.... 000004e0: 0000 0072 aff9 2000 0000 0072 de1d a000 ...r.. ....r.... 000004f0: 0000 0074 86a0 a000 0000 0074 b4c5 2000 ...t.......t.. . 00000500: 0000 0076 540d a000 0000 0076 8b6c a000 ...vT......v.l.. 00000510: 0000 0078 2ab5 2000 0000 0078 58d9 a000 ...x*. ....xX... 00000520: 0000 0079 f822 2000 0000 007a 2f81 2000 ...y." ....z/. . 00000530: 0000 007b cec9 a000 0000 007b fcee 2000 ...{.......{.. . 00000540: 0000 007d a571 2000 0000 007d d395 a000 ...}.q ....}.... 00000550: 0000 007f 72de 2000 0000 007f aa3d 2000 ....r. ......= . 00000560: 0000 0374 0ad8 0002 0102 0102 0102 0102 ...t............ 00000570: 0102 0102 0102 0102 0302 0102 0102 0102 ................ 00000580: 0102 0102 0102 0102 0102 0102 0102 0102 ................ 00000590: 0102 0102 0102 0102 0102 0102 0103 0403 ................ 000005a0: 0403 0403 0403 0403 0403 0403 0403 0403 ................ 000005b0: 0403 0403 0403 0403 0403 0403 0403 0403 ................ 000005c0: 0403 0403 0403 03ff fff8 e400 0000 000e ................ 000005d0: 1001 0400 0000 0000 0800 000e 1000 0400 ................ 000005e0: 0000 0001 084c 4d54 002b 3031 002b 3030 .....LMT.+01.+00 000005f0: 0000 0000 0000 0000 0000 000a 0a ............. ```
000005d0: 1001 0400 0000 0000 0800 000e 1000 0400  ................
000005e0: 0000 0001 084c 4d54 002b 3031 002b 3030  .....LMT.+01.+00
000005f0: 0000 0000 0000 0000 0000 000a 0a         .............
altendky commented 5 years ago

Looks to also have been raised in sdispater/pytzdata#8.

jozeffrtus commented 5 years ago

@sdispater pls, what is the state of this?

altendky commented 5 years ago

Reported again in #370. As noted there it looks to be fixed in https://github.com/sdispater/pendulum/commit/94d28b0d3cb524ae02361bd1ed7ea03e2e655e4e.