MCPcopy 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

testCeilMethod · 0.85

Calls 1

BadDescrClass · 0.70

Tested by 1

testCeilMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…