Skip to content

Commit 14f8230

Browse files
committed
moving convert_to_pybind11_str up to where it is in PR #2366
1 parent c58c7b7 commit 14f8230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pytypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ TEST_SUBMODULE(pytypes, m) {
240240
);
241241
});
242242

243+
m.def("convert_to_pybind11_str", [](py::object o) { return py::str(o); });
244+
243245
m.def("get_implicit_casting", []() {
244246
py::dict d;
245247
d["char*_i1"] = "abc";
@@ -377,6 +379,4 @@ TEST_SUBMODULE(pytypes, m) {
377379
m.def("pass_to_pybind11_bytes", [](py::bytes b) { return py::len(b); });
378380
m.def("pass_to_pybind11_unicode", [](py::str s) { return py::len(s); });
379381
m.def("pass_to_std_string", [](std::string s) { return s.size(); });
380-
381-
m.def("convert_to_pybind11_str", [](py::object o) { return py::str(o); });
382382
}

0 commit comments

Comments
 (0)