test_localtime_and_gmtime_match_datetime and test_naive_datetime_modes
fail intermittently on musl. time-machine sets TZ to the zone key, and
musl parses keys that are also valid POSIX TZ rule strings, such as
EST5EDT, CST6CDT, GB-Eire, NZ-CHAT and W-SU, as rules instead of loading
the zone file, so libc local time disagrees with zoneinfo.
Prefix the key with a colon, which makes glibc and musl load the zone
file. With this and the musl fix for zone files with a single
transition, 120 of 120 hypothesis seeds of the full suite pass in a musl
image rootfs, against 18 failing seeds with this change alone.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
test_fuzz.py::test_travel_to_aware_datetime fails whenever hypothesis
generates an ambiguous datetime (one in a DST fold), e.g.
1970-10-25 01:00 America/Dawson_Creek, because per PEP 495 such a
datetime never compares equal to a datetime in another zone. Backport
the pending upstream fix.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>