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

Class AlsoBogus

Lib/test/datetimetester.py:3126–3128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3124 self.assertEqual(dt.replace(tzinfo=bog).astimezone(f), dt_f)
3125
3126 class AlsoBogus(tzinfo):
3127 def utcoffset(self, dt): return timedelta(0)
3128 def dst(self, dt): return None
3129 alsobog = AlsoBogus()
3130 self.assertRaises(ValueError, dt.astimezone, alsobog) # also naive
3131

Callers 1

test_astimezoneMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_astimezoneMethod · 0.68