MCPcopy Index your code
hub / github.com/python/cpython / test_empty_zone

Method test_empty_zone

Lib/test/test_zoneinfo/test_zoneinfo.py:738–742  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

736 self.assertEqual(dt.dst(), offset.dst)
737
738 def test_empty_zone(self):
739 zf = self.construct_zone([], "")
740
741 with self.assertRaises(ValueError):
742 self.klass.from_file(zf)
743
744 def test_invalid_transition_index(self):
745 STD = ZoneOffset("STD", ZERO)

Callers

nothing calls this directly

Calls 3

construct_zoneMethod · 0.95
assertRaisesMethod · 0.45
from_fileMethod · 0.45

Tested by

no test coverage detected