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

Class BOFS

Lib/test/datetimetester.py:5315–5317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5313 self.assertEqual(0, t.tm_isdst)
5314 # Check that bad tzinfo is detected
5315 class BOFS(DST):
5316 def utcoffset(self, dt):
5317 return "EST"
5318 d = cls(1, 2, 3, 10, 20, 30, 40, tzinfo=BOFS())
5319 self.assertRaises(TypeError, d.utctimetuple)
5320

Callers 1

test_utctimetupleMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_utctimetupleMethod · 0.68