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

Function test_final

tests/test_class.py:462–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460# https://foss.heptapod.net/pypy/pypy/-/issues/2742
461@pytest.mark.xfail("env.PYPY")
462def test_final():
463 with pytest.raises(TypeError) as exc_info:
464
465 class PyFinalChild(m.IsFinal):
466 pass
467
468 assert str(exc_info.value).endswith("is not an acceptable base type")
469
470
471# https://foss.heptapod.net/pypy/pypy/-/issues/2742

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected