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

Function test_python_drvd2

tests/test_class_sh_inheritance.py:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_python_drvd2():
54 class Drvd2(m.base1, m.base2):
55 def __init__(self):
56 m.base1.__init__(self)
57 m.base2.__init__(self)
58
59 d = Drvd2()
60 i1 = m.pass_cptr_base1(d) # load_impl Case 2b
61 assert i1 == 110 + 21
62 i2 = m.pass_cptr_base2(d)
63 assert i2 == 120 + 22

Callers

nothing calls this directly

Calls 1

Drvd2Class · 0.85

Tested by

no test coverage detected