Home
last modified time | relevance | path

Searched refs:TestPropertiesOverride (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_methods_and_attributes.py171 assert m.TestPropertiesOverride().def_readonly == 99
172 assert m.TestPropertiesOverride.def_readonly_static == 99
175 del m.TestPropertiesOverride.def_readonly_static
177 hasattr(m.TestPropertiesOverride, "def_readonly_static")
178 and m.TestPropertiesOverride.def_readonly_static
181 assert "def_readonly_static" not in m.TestPropertiesOverride.__dict__
182 properties_override = m.TestPropertiesOverride()
Dtest_methods_and_attributes.cpp90 struct TestPropertiesOverride : TestProperties { struct
94 int TestPropertiesOverride::static_value = 99; argument
252 py::class_<TestPropertiesOverride, TestProperties>(m, "TestPropertiesOverride") in TEST_SUBMODULE()
254 .def_readonly("def_readonly", &TestPropertiesOverride::value) in TEST_SUBMODULE()
255 .def_readonly_static("def_readonly_static", &TestPropertiesOverride::static_value); in TEST_SUBMODULE()