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

Function test_fromutc_errors

tests/test_tzfile.py:616–620  ·  view source on GitHub ↗

tzinfo.fromutc invocations that raise an error.

(dt, errtype)

Source from the content-addressed store, hash-verified

614 ],
615)
616def test_fromutc_errors(dt, errtype):
617 """tzinfo.fromutc invocations that raise an error."""
618 zone = tz.gettz("Europe/London") # Any zone should work
619 with pytest.raises(errtype):
620 zone.fromutc(dt)
621
622
623@as_list

Callers

nothing calls this directly

Calls 2

gettzMethod · 0.45
fromutcMethod · 0.45

Tested by

no test coverage detected