diff --git a/include/pybind11/detail/type_caster_base.h b/include/pybind11/detail/type_caster_base.h index 38b5fcf5d..16387506c 100644 --- a/include/pybind11/detail/type_caster_base.h +++ b/include/pybind11/detail/type_caster_base.h @@ -156,19 +156,6 @@ PYBIND11_NOINLINE void all_type_info_populate(PyTypeObject *t, std::vectortp_name); - for (const auto &base : item.second) { - printf(" %s\n", base->type->tp_name); - } - } - printf("}\n"); - fflush(stdout); -} - /** * Extracts vector of type_info pointers of pybind-registered roots of the given Python type. Will * be just 1 pybind type for the Python type of a pybind-registered class, or for any Python-side @@ -184,7 +171,6 @@ inline const std::vector &all_type_info(PyTypeObject *type) if (ins.second) { // New cache entry: populate it all_type_info_populate(type, ins.first->second); - dump_registered_types_py(); } return ins.first->second; diff --git a/tests/test_python_multiple_inheritance.py b/tests/test_python_multiple_inheritance.py index 5b18cfea1..cdd34d9ce 100644 --- a/tests/test_python_multiple_inheritance.py +++ b/tests/test_python_multiple_inheritance.py @@ -15,7 +15,7 @@ class PPCCInit(PC, m.CppDrvd): # Moving this test after test_PC() changes the behavior! -def NOtest_PPCCInit(): +def test_PPCCInit(): d = PPCCInit(11) assert d.get_drvd_value() == 36 d.reset_drvd_value(55) @@ -31,13 +31,8 @@ def NOtest_PPCCInit(): assert d.get_base_value_from_drvd() == 30 -def NOtest_PC(): +def test_PC(): d = PC(11) assert d.get_base_value() == 11 d.reset_base_value(13) assert d.get_base_value() == 13 - - -def testOrderDependenceDemo(): - PC(0) - PPCCInit(0)