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

Function test_multiple_inheritance

tests/test_factory_constructors.py:337–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335
336
337def test_multiple_inheritance():
338 class MITest(m.TestFactory1, m.TestFactory2):
339 def __init__(self):
340 m.TestFactory1.__init__(self, tag.unique_ptr, 33)
341 m.TestFactory2.__init__(self, tag.move)
342
343 a = MITest()
344 assert m.TestFactory1.value.fget(a) == "33"
345 assert m.TestFactory2.value.fget(a) == "(empty2)"
346
347
348def create_and_destroy(*args):

Callers

nothing calls this directly

Calls 1

MITestClass · 0.85

Tested by

no test coverage detected