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

Class C4

Lib/test/datetimetester.py:4461–4464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4459
4460 # Wrong types.
4461 class C4(tzinfo):
4462 def utcoffset(self, dt): return "aname"
4463 def dst(self, dt): return 7
4464 def tzname(self, dt): return 0
4465 t = cls(1, 1, 1, tzinfo=C4())
4466 self.assertRaises(TypeError, t.utcoffset)
4467 self.assertRaises(TypeError, t.dst)

Callers 1

test_tzinfo_classesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_tzinfo_classesMethod · 0.56