MCPcopy Index your code
hub / github.com/RustPython/RustPython / F

Class F

Lib/test/test_math.py:2495–2498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2493 # A SystemError should not be raised if the first arg to atan2(),
2494 # copysign(), or remainder() cannot be converted to a float.
2495 class F:
2496 def __float__(self):
2497 self.converted = True
2498 1/0
2499 for func in math.atan2, math.copysign, math.remainder:
2500 y = F()
2501 with self.assertRaises(TypeError):

Callers 3

testDistMethod · 0.70
test_prodMethod · 0.70
test_issue39871Method · 0.70

Calls

no outgoing calls

Tested by 3

testDistMethod · 0.56
test_prodMethod · 0.56
test_issue39871Method · 0.56