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

Class C4

Lib/test/datetimetester.py:4278–4281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4276
4277 # Wrong types.
4278 class C4(tzinfo):
4279 def utcoffset(self, dt): return "aname"
4280 def dst(self, dt): return 7
4281 def tzname(self, dt): return 0
4282 t = cls(1, 1, 1, tzinfo=C4())
4283 self.assertRaises(TypeError, t.utcoffset)
4284 self.assertRaises(TypeError, t.dst)

Callers 1

test_tzinfo_classesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_tzinfo_classesMethod · 0.56