MCPcopy Index your code
hub / github.com/python/cpython / TestNoFloor

Class TestNoFloor

Lib/test/test_math.py:539–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537 def __floor__(self):
538 return 42
539 class TestNoFloor:
540 pass
541 class TestBadFloor:
542 __floor__ = BadDescr()
543 self.assertEqual(math.floor(TestFloor()), 42)

Callers 1

testFloorMethod · 0.85

Calls

no outgoing calls

Tested by 1

testFloorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…