Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ TestBadCeil
Class
TestBadCeil
Lib/test/test_math.py:397–398 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
395
class
TestNoCeil:
396
pass
397
class
TestBadCeil:
398
__ceil__ = BadDescr()
399
self.assertEqual(math.ceil(TestCeil()), 42)
400
self.assertEqual(math.ceil(FloatCeil()), 42)
401
self.assertEqual(math.ceil(FloatLike(42.5)), 43)
Callers
1
testCeil
Method · 0.85
Calls
1
BadDescr
Class · 0.70
Tested by
1
testCeil
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…