MCPcopy Index your code
hub / github.com/RustPython/RustPython / C6

Class C6

Lib/test/datetimetester.py:4288–4290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4286
4287 # Offset out of range.
4288 class C6(tzinfo):
4289 def utcoffset(self, dt): return timedelta(hours=-24)
4290 def dst(self, dt): return timedelta(hours=24)
4291 t = cls(1, 1, 1, tzinfo=C6())
4292 self.assertRaises(ValueError, t.utcoffset)
4293 self.assertRaises(ValueError, t.dst)

Callers 1

test_tzinfo_classesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_tzinfo_classesMethod · 0.56