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

Class C7

Lib/test/datetimetester.py:4479–4481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4477
4478 # Not a whole number of seconds.
4479 class C7(tzinfo):
4480 def utcoffset(self, dt): return timedelta(microseconds=61)
4481 def dst(self, dt): return timedelta(microseconds=-81)
4482 t = cls(1, 1, 1, tzinfo=C7())
4483 self.assertEqual(t.utcoffset(), timedelta(microseconds=61))
4484 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