Test usage of __complex__() when inheriting from 'complex
| 607 | self.assertRaises(TypeError, complex, 1.5, MyInt()) |
| 608 | |
| 609 | class complex0(complex): |
| 610 | """Test usage of __complex__() when inheriting from 'complex'""" |
| 611 | def __complex__(self): |
| 612 | return 42j |
| 613 | |
| 614 | class complex1(complex): |
| 615 | """Test usage of __complex__() with a __new__() method""" |
no outgoing calls
searching dependent graphs…