Skip to content

Commit 2d14c1c

Browse files
committed
Fixed bad_arg_def imports
Don't try to define these in the issues submodule, because that fails if testing without issues compiled in (e.g. using cmake -DPYBIND11_TEST_OVERRIDE=test_methods_and_attributes.cpp).
1 parent 02ffbf1 commit 2d14c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_methods_and_attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,11 @@ test_initializer methods_and_attributes([](py::module &m) {
299299
m.attr("debug_enabled") = false;
300300
#endif
301301
m.def("bad_arg_def_named", []{
302-
auto m = py::module::import("pybind11_tests.issues");
302+
auto m = py::module::import("pybind11_tests");
303303
m.def("should_fail", [](int, NotRegistered) {}, py::arg(), py::arg("a") = NotRegistered());
304304
});
305305
m.def("bad_arg_def_unnamed", []{
306-
auto m = py::module::import("pybind11_tests.issues");
306+
auto m = py::module::import("pybind11_tests");
307307
m.def("should_fail", [](int, NotRegistered) {}, py::arg(), py::arg() = NotRegistered());
308308
});
309309
});

0 commit comments

Comments
 (0)