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

Function test_time_varying_offset

tests/test_tzfile.py:731–737  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

729
730
731def test_time_varying_offset():
732 tzi = tz.gettz("America/New_York")
733 t = time(11, 1, tzinfo=tzi)
734
735 assert t.utcoffset() is None
736 assert t.tzname() is None
737 assert t.dst() is None
738
739
740@functools.cache

Callers

nothing calls this directly

Calls 4

gettzMethod · 0.45
utcoffsetMethod · 0.45
tznameMethod · 0.45
dstMethod · 0.45

Tested by

no test coverage detected