Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ ok
Class
ok
Lib/test/datetimetester.py:5994–5996 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5992
5993
def
test_bogus_dst(self):
5994
class
ok(tzinfo):
5995
def
utcoffset(self, dt):
return
HOUR
5996
def
dst(self, dt):
return
HOUR
5997
5998
now = self.theclass.now().replace(tzinfo=utc_real)
5999
# Doesn't blow up.
Callers
1
test_bogus_dst
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_bogus_dst
Method · 0.68