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

Class C7

Lib/test/datetimetester.py:4296–4298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4294
4295 # Not a whole number of seconds.
4296 class C7(tzinfo):
4297 def utcoffset(self, dt): return timedelta(microseconds=61)
4298 def dst(self, dt): return timedelta(microseconds=-81)
4299 t = cls(1, 1, 1, tzinfo=C7())
4300 self.assertEqual(t.utcoffset(), timedelta(microseconds=61))
4301 self.assertEqual(t.dst(), timedelta(microseconds=-81))

Callers 1

test_tzinfo_classesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_tzinfo_classesMethod · 0.56