Make tests pass if dateutil does not know the timezone

See https://github.com/collective/icalendar/issues/780#issuecomment-2759439855
pull/792/head^2
Nicco Kunzmann 2025-03-27 20:51:56 +00:00
rodzic 3d76ecfccb
commit b64e84888c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -410,4 +410,4 @@ def test_we_can_identify_dateutil_timezones(tzid):
But if we know their shortcodes, we should be able to identify them.
"""
tz = gettz(tzid)
assert tzid in tzids_from_tzinfo(tz)
assert tz is None or tzid in tzids_from_tzinfo(tz)