(self)
| 244 | |
| 245 | class PyClass2(m.DispatchIssue): |
| 246 | def dispatch(self): |
| 247 | with pytest.raises(RuntimeError) as excinfo: |
| 248 | super().dispatch() |
| 249 | assert ( |
| 250 | msg(excinfo.value) |
| 251 | == 'Tried to call pure virtual function "Base::dispatch"' |
| 252 | ) |
| 253 | |
| 254 | return m.dispatch_issue_go(PyClass1()) |
| 255 | |
| 256 | b = PyClass2() |
| 257 | assert m.dispatch_issue_go(b) == "Yay.." |