Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ TestBadTrunc
Class
TestBadTrunc
Lib/test/test_math.py:1976–1977 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1974
class
TestNoTrunc:
1975
pass
1976
class
TestBadTrunc:
1977
__trunc__ = BadDescr()
1978
1979
self.assertEqual(math.trunc(TestTrunc()), 23)
1980
self.assertEqual(math.trunc(FloatTrunc()), 23)
Callers
1
test_trunc
Method · 0.85
Calls
1
BadDescr
Class · 0.70
Tested by
1
test_trunc
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…