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

Class Broken

Lib/test/datetimetester.py:3132–3134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3130 self.assertRaises(ValueError, dt.astimezone, alsobog) # also naive
3131
3132 class Broken(tzinfo):
3133 def utcoffset(self, dt): return 1
3134 def dst(self, dt): return 1
3135 broken = Broken()
3136 dt_broken = dt.replace(tzinfo=broken)
3137 with self.assertRaises(TypeError):

Callers 1

test_astimezoneMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_astimezoneMethod · 0.56