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

Class MITest

tests/test_factory_constructors.py:338–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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"

Callers 1

Calls

no outgoing calls

Tested by 1