MCPcopy Index your code
hub / github.com/python/cpython / notok

Class notok

Lib/test/datetimetester.py:6003–6004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6001
6002 # Does blow up.
6003 class notok(ok):
6004 def dst(self, dt): return None
6005 self.assertRaises(ValueError, now.astimezone, notok())
6006
6007 # Sometimes blow up. In the following, tzinfo.dst()

Callers 1

test_bogus_dstMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_bogus_dstMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…