diff --git a/tests/python/doc_snippets/export_pluginplay_examples.cpp b/tests/python/doc_snippets/export_pluginplay_examples.cpp index 57871411d..4c40e12a6 100644 --- a/tests/python/doc_snippets/export_pluginplay_examples.cpp +++ b/tests/python/doc_snippets/export_pluginplay_examples.cpp @@ -18,12 +18,12 @@ #include "../../cxx/doc_snippets/force.hpp" #include "../../cxx/doc_snippets/load_modules.hpp" #include "../../cxx/doc_snippets/point_charge.hpp" +#include #include -#include namespace pluginplay_examples { -PYBIND11_MODULE(pluginplay_examples, m) { +EXPORT_PLUGIN(pluginplay_examples, m) { pybind11::class_(m, "PointCharge") .def(pybind11::init<>()) .def(pybind11::init()) @@ -32,7 +32,6 @@ PYBIND11_MODULE(pluginplay_examples, m) { .def(pybind11::self == pybind11::self) .def(pybind11::self < pybind11::self); - m.def("load_modules", &load_modules); EXPORT_PROPERTY_TYPE(ElectricField, m); EXPORT_PROPERTY_TYPE(Force, m); }