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

Class C3

Lib/test/datetimetester.py:4268–4271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4266 self.assertIsNone(t.tzname())
4267
4268 class C3(tzinfo):
4269 def utcoffset(self, dt): return timedelta(minutes=-1439)
4270 def dst(self, dt): return timedelta(minutes=1439)
4271 def tzname(self, dt): return "aname"
4272 t = cls(1, 1, 1, tzinfo=C3())
4273 self.assertEqual(t.utcoffset(), timedelta(minutes=-1439))
4274 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