Add testcase for issue 2059

This commit is contained in:
Aaron Gokaslan 2021-09-07 11:02:29 -04:00
parent d71ba0cb73
commit 7a3a51435e

View File

@ -133,6 +133,10 @@ def test_qualname(doc):
assert m.NestBase.__module__ == "pybind11_tests.class_" assert m.NestBase.__module__ == "pybind11_tests.class_"
assert m.NestBase.Nested.__module__ == "pybind11_tests.class_" assert m.NestBase.Nested.__module__ == "pybind11_tests.class_"
assert m.Pet.__module__ == "pybind11_tests.class_"
assert m.Pet.__qualname__ == "Pet"
assert m.Pet.name.__qualname__ == "Pet.name"
def test_inheritance(msg): def test_inheritance(msg):
roger = m.Rabbit("Rabbit") roger = m.Rabbit("Rabbit")