tests: add or delete copy/move ctors where needed to make type traits match reality (#5833)
This commit is contained in:
@@ -521,6 +521,7 @@ TEST_SUBMODULE(class_, m) {
|
||||
// test_exception_rvalue_abort
|
||||
struct PyPrintDestructor {
|
||||
PyPrintDestructor() = default;
|
||||
PyPrintDestructor(const PyPrintDestructor &) = default;
|
||||
~PyPrintDestructor() { py::print("Print from destructor"); }
|
||||
void throw_something() { throw std::runtime_error("error"); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user