Public bug reported:
Fedora replaces the hard-coded list of timezones with one dynamically
read from /usr/share/zoneinfo (cf.
https://src.fedoraproject.org/rpms/pytz/blob/master/f/pytz-
zoneinfo.patch). This breaks the promise in python-tz's README.txt that
all_timezones and common_timezones are sorted, i. e. for example on
Fedora 25:
| [tim@passepartout ~]$ python2 -c 'from pytz import all_timezones,
common_timezones; print all_timezones == sorted(all_timezones),
common_timezones == sorted(common_timezones)'
| False False
| [tim@passepartout ~]$ python3 -c 'from pytz import all_timezones,
common_timezones; print(all_timezones == sorted(all_timezones),
common_timezones == sorted(common_timezones))'
| False False
| [tim@passepartout ~]$
This is not python-tz's fault, but it would be helpful if the test suite
would assert that all_timezones == sorted(all_timezones) &&
common_timezones == sorted(common_timezones) so that this becomes a
regression easier to detect.
** Affects: python-tz (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1720794
Title:
Test for sortedness of all_timezones and common_timezones is missing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-tz/+bug/1720794/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs