diff --git a/tests/test_class_sh_mi_thunks.cpp b/tests/test_class_sh_mi_thunks.cpp index a34ef308a1..c4f430e864 100644 --- a/tests/test_class_sh_mi_thunks.cpp +++ b/tests/test_class_sh_mi_thunks.cpp @@ -58,8 +58,6 @@ TEST_SUBMODULE(class_sh_mi_thunks, m) { []() { auto *drvd = new Derived; auto *base0 = dynamic_cast(drvd); -printf("\nLOOOK get raw drvd %ld\n", (long) drvd); fflush(stdout); // NOLINT -printf("\nLOOOK get raw base %ld\n", (long) base0); fflush(stdout); // NOLINT return base0; }, py::return_value_policy::take_ownership); @@ -67,8 +65,6 @@ printf("\nLOOOK get raw base %ld\n", (long) base0); fflush(stdout); // NOLINT m.def("get_drvd_as_base0_shared_ptr", []() { auto drvd = std::make_shared(); auto base0 = std::dynamic_pointer_cast(drvd); -printf("\nLOOOK get shd drvd %ld\n", (long) drvd.get()); fflush(stdout); // NOLINT -printf("\nLOOOK get shd base %ld\n", (long) base0.get()); fflush(stdout); // NOLINT return base0; }); @@ -79,9 +75,7 @@ printf("\nLOOOK get shd base %ld\n", (long) base0.get()); fflush(stdout); // NO }); m.def("vec_size_base0_raw_ptr", [](const Base0 *obj) { -printf("\nLOOOK raw const Base0 *obj %ld\n", (long) obj); fflush(stdout); // NOLINT const auto *obj_der = dynamic_cast(obj); -printf("\nLOOOK raw const auto *obj_der %ld\n", (long) obj_der); fflush(stdout); // NOLINT if (obj_der == nullptr) { return std::size_t(0); } @@ -89,9 +83,7 @@ printf("\nLOOOK raw const auto *obj_der %ld\n", (long) obj_der); fflush(stdout); }); m.def("vec_size_base0_shared_ptr", [](const std::shared_ptr &obj) -> std::size_t { -printf("\nLOOOK shd const Base0 *obj %ld\n", (long) obj.get()); fflush(stdout); // NOLINT const auto obj_der = std::dynamic_pointer_cast(obj); -printf("\nLOOOK shd const auto *obj_der %ld\n", (long) obj_der.get()); fflush(stdout); // NOLINT if (!obj_der) { return std::size_t(0); } diff --git a/tests/test_class_sh_mi_thunks.py b/tests/test_class_sh_mi_thunks.py index 9f19577002..c1c8a30431 100644 --- a/tests/test_class_sh_mi_thunks.py +++ b/tests/test_class_sh_mi_thunks.py @@ -30,11 +30,8 @@ def test_ptrdiff_drvd_base0(): ], ) def test_get_vec_size_raw_shared(get_fn, vec_size_fn): - print(f"\nLOOOK A", flush=True) obj = get_fn() - print(f"\nLOOOK B", flush=True) assert vec_size_fn(obj) == 5 - print(f"\nLOOOK C", flush=True) @pytest.mark.parametrize(