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

Class PyClass2

tests/test_virtual_functions.py:252–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 return "Yay.."
251
252 class PyClass2(m.DispatchIssue):
253 def dispatch(self):
254 with pytest.raises(RuntimeError) as excinfo:
255 super().dispatch()
256 assert (
257 msg(excinfo.value)
258 == 'Tried to call pure virtual function "Base::dispatch"'
259 )
260
261 return m.dispatch_issue_go(PyClass1())
262
263 b = PyClass2()
264 assert m.dispatch_issue_go(b) == "Yay.."

Callers 1

test_dispatch_issueFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_dispatch_issueFunction · 0.68