| 486 | |
| 487 | # Attempts to initialize with an invalid type passed as `self`: |
| 488 | class BrokenTF1(m.TestFactory1): |
| 489 | def __init__(self, bad): |
| 490 | if bad == 1: |
| 491 | a = m.TestFactory2(tag.pointer, 1) |
| 492 | m.TestFactory1.__init__(a, tag.pointer) |
| 493 | elif bad == 2: |
| 494 | a = NotPybindDerived() |
| 495 | m.TestFactory1.__init__(a, tag.pointer) |
| 496 | |
| 497 | # Same as above, but for a class with an alias: |
| 498 | class BrokenTF6(m.TestFactory6): |
no outgoing calls