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

Function test_override_static

tests/test_class.py:306–314  ·  view source on GitHub ↗

#511: problem with inheritance + overwritten def_static

()

Source from the content-addressed store, hash-verified

304
305
306def test_override_static():
307 """#511: problem with inheritance + overwritten def_static"""
308 b = m.MyBase.make()
309 d1 = m.MyDerived.make2()
310 d2 = m.MyDerived.make()
311
312 assert isinstance(b, m.MyBase)
313 assert isinstance(d1, m.MyDerived)
314 assert isinstance(d2, m.MyDerived)
315
316
317def test_implicit_conversion_life_support():

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
makeMethod · 0.45

Tested by

no test coverage detected