aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/pybind11/tests/test_local_bindings.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/pybind11/tests/test_local_bindings.cpp')
-rw-r--r--3rdparty/pybind11/tests/test_local_bindings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/pybind11/tests/test_local_bindings.cpp b/3rdparty/pybind11/tests/test_local_bindings.cpp
index 97c02dbe..c61e3888 100644
--- a/3rdparty/pybind11/tests/test_local_bindings.cpp
+++ b/3rdparty/pybind11/tests/test_local_bindings.cpp
@@ -41,7 +41,7 @@ TEST_SUBMODULE(local_bindings, m) {
// should raise a runtime error from the duplicate definition attempt. If test_class isn't
// available it *also* throws a runtime error (with "test_class not enabled" as value).
m.def("register_local_external", [m]() {
- auto main = py::module::import("pybind11_tests");
+ auto main = py::module_::import("pybind11_tests");
if (py::hasattr(main, "class_")) {
bind_local<LocalExternal, 7>(m, "LocalExternal", py::module_local());
}