mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-28 08:02:00 +00:00
Add testcase for issue 2059
This commit is contained in:
parent
d71ba0cb73
commit
7a3a51435e
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user