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

Function _gettz

tests/test_tz.py:2815–2820  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

2813
2814
2815def _gettz(key):
2816 # A key missing from the data should fail the test, not pass it with a
2817 # naive datetime.
2818 zone = tz.gettz(key)
2819 assert zone is not None, key
2820 return zone
2821
2822@pytest.mark.tz_resolve_imaginary
2823@pytest.mark.parametrize(

Callers 3

test_resolve_imaginaryFunction · 0.85

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected