Make sure that __complex__() calls fail if anything other than a complex is returned
| 619 | return self |
| 620 | |
| 621 | class complex2(complex): |
| 622 | """Make sure that __complex__() calls fail if anything other than a |
| 623 | complex is returned""" |
| 624 | def __complex__(self): |
| 625 | return None |
| 626 | |
| 627 | check(complex(complex0(1j)), 0.0, 42.0) |
| 628 | with self.assertWarns(DeprecationWarning): |
no outgoing calls
searching dependent graphs…