Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ TestBadFloor
Class
TestBadFloor
Lib/test/test_math.py:541–542 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
539
class
TestNoFloor:
540
pass
541
class
TestBadFloor:
542
__floor__ = BadDescr()
543
self.assertEqual(math.floor(TestFloor()), 42)
544
self.assertEqual(math.floor(FloatFloor()), 42)
545
self.assertEqual(math.floor(FloatLike(41.9)), 41)
Callers
1
testFloor
Method · 0.85
Calls
1
BadDescr
Class · 0.70
Tested by
1
testFloor
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…