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

Class F

Lib/test/test_math.py:2402–2405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2400 # A SystemError should not be raised if the first arg to atan2(),
2401 # copysign(), or remainder() cannot be converted to a float.
2402 class F:
2403 def __float__(self):
2404 self.converted = True
2405 1/0
2406 for func in math.atan2, math.copysign, math.remainder:
2407 y = F()
2408 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