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

Class ok

Lib/test/datetimetester.py:5807–5809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5805
5806 def test_bogus_dst(self):
5807 class ok(tzinfo):
5808 def utcoffset(self, dt): return HOUR
5809 def dst(self, dt): return HOUR
5810
5811 now = self.theclass.now().replace(tzinfo=utc_real)
5812 # Doesn't blow up.

Callers 1

test_bogus_dstMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_bogus_dstMethod · 0.68