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