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

Function test_resolve_imaginary_ambiguous

tests/test_tz.py:2831–2837  ·  view source on GitHub ↗
(tz_source, key, dt)

Source from the content-addressed store, hash-verified

2829 ],
2830)
2831def test_resolve_imaginary_ambiguous(tz_source, key, dt):
2832 dt = dt.replace(tzinfo=_gettz(key))
2833 assert tz.resolve_imaginary(dt) is dt
2834
2835 dt_f = tz.enfold(dt)
2836 assert dt is not dt_f
2837 assert tz.resolve_imaginary(dt_f) is dt_f
2838
2839@pytest.mark.tz_resolve_imaginary
2840@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

_gettzFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected