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

Class C3

Lib/test/datetimetester.py:4451–4454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4449 self.assertIsNone(t.tzname())
4450
4451 class C3(tzinfo):
4452 def utcoffset(self, dt): return timedelta(minutes=-1439)
4453 def dst(self, dt): return timedelta(minutes=1439)
4454 def tzname(self, dt): return "aname"
4455 t = cls(1, 1, 1, tzinfo=C3())
4456 self.assertEqual(t.utcoffset(), timedelta(minutes=-1439))
4457 self.assertEqual(t.dst(), timedelta(minutes=1439))

Callers 1

test_tzinfo_classesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_tzinfo_classesMethod · 0.56