| 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): |
no outgoing calls