MCPcopy Create free account
hub / github.com/dateutil/dateutil / test_weirdzone_time_none

Function test_weirdzone_time_none

tests/test_tzfile.py:1453–1457  ·  view source on GitHub ↗
(zone)

Source from the content-addressed store, hash-verified

1451
1452@pytest.mark.parametrize("zone", weirdzone_test_cases()["varying_zones"])
1453def test_weirdzone_time_none(zone):
1454 t = time(12, 0, 0, tzinfo=zone)
1455 assert t.tzname() is None
1456 assert t.utcoffset() is None
1457 assert t.dst() is None
1458
1459
1460def test_empty_zone():

Callers

nothing calls this directly

Calls 3

tznameMethod · 0.45
utcoffsetMethod · 0.45
dstMethod · 0.45

Tested by

no test coverage detected