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

Function test_base_and_derived_nested_scope

tests/test_class.py:504–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

502
503# https://github.com/pybind/pybind11/issues/1624
504def test_base_and_derived_nested_scope():
505 assert issubclass(m.DerivedWithNested, m.BaseWithNested)
506 assert m.BaseWithNested.Nested != m.DerivedWithNested.Nested
507 assert m.BaseWithNested.Nested.get_name() == "BaseWithNested::Nested"
508 assert m.DerivedWithNested.Nested.get_name() == "DerivedWithNested::Nested"
509
510
511def test_register_duplicate_class():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected