mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
fix: don't destruct module objects in atexit (#5688)
This commit is contained in:
@@ -78,8 +78,7 @@ TEST_SUBMODULE(modules, m) {
|
||||
class DupeException {};
|
||||
|
||||
// Go ahead and leak, until we have a non-leaking py::module_ constructor
|
||||
auto dm
|
||||
= py::module_::create_extension_module("dummy", nullptr, new py::module_::module_def);
|
||||
auto dm = py::module_::create_extension_module("dummy", nullptr, new PyModuleDef);
|
||||
auto failures = py::list();
|
||||
|
||||
py::class_<Dupe1>(dm, "Dupe1");
|
||||
|
||||
Reference in New Issue
Block a user