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

Class C6

Lib/test/datetimetester.py:4471–4473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4469
4470 # Offset out of range.
4471 class C6(tzinfo):
4472 def utcoffset(self, dt): return timedelta(hours=-24)
4473 def dst(self, dt): return timedelta(hours=24)
4474 t = cls(1, 1, 1, tzinfo=C6())
4475 self.assertRaises(ValueError, t.utcoffset)
4476 self.assertRaises(ValueError, t.dst)

Callers 1

test_tzinfo_classesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_tzinfo_classesMethod · 0.56