MCPcopy Create free account
hub / github.com/pybind/pybind11 / BrokenTF1

Class BrokenTF1

tests/test_factory_constructors.py:488–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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):

Callers 1

test_invalid_selfFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_invalid_selfFunction · 0.68