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

Function test_non_final_final

tests/test_class.py:473–479  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

471# https://foss.heptapod.net/pypy/pypy/-/issues/2742
472@pytest.mark.xfail("env.PYPY")
473def test_non_final_final():
474 with pytest.raises(TypeError) as exc_info:
475
476 class PyNonFinalFinalChild(m.IsNonFinalFinal):
477 pass
478
479 assert str(exc_info.value).endswith("is not an acceptable base type")
480
481
482# https://github.com/pybind/pybind11/issues/1878

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected