Home
last modified time | relevance | path

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

/external/python/pybind11/tests/
Dtest_methods_and_attributes.py206 assert type(m.MetaclassOverride).__name__ == "type"
208 assert m.MetaclassOverride.readonly == 1
210 type(m.MetaclassOverride.__dict__["readonly"]).__name__
215 m.MetaclassOverride.readonly = 2
216 assert m.MetaclassOverride.readonly == 2
217 assert isinstance(m.MetaclassOverride.__dict__["readonly"], int)
Dtest_methods_and_attributes.cpp283 struct MetaclassOverride { }; in TEST_SUBMODULE() struct
284 py::class_<MetaclassOverride>(m, "MetaclassOverride", py::metaclass((PyObject *) &PyType_Type)) in TEST_SUBMODULE()