Skip to content

Commit 5201f37

Browse files
committed
Ajust tests after clair commit 41f601e
1 parent d638c83 commit 5201f37

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/ignore.wrap.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ constinit PyGetSetDef c2py::tp_getset<a_struct>[] = {c2py::getsetdef_from_member
8383

8484
template <> const std::string c2py::tp_doc<a_struct> = R"DOC()DOC" + c2py::tp_ctor_doc<a_struct>;
8585
template <> inline constexpr auto c2py::tp_name<opaque> = "ignore.Opaque";
86+
static auto init_0 = c2py::dispatcher_c_kw_t{c2py::c_constructor<opaque>()};
87+
template <> constexpr initproc c2py::tp_init<opaque> = c2py::pyfkw_constructor<init_0>;
88+
template <> const std::string c2py::tp_ctor_doc<opaque> = init_0.doc(R"DOC()DOC");
8689

8790
// ----- Method table ----
8891
template <>
@@ -100,9 +103,9 @@ constinit PyGetSetDef c2py::tp_getset<opaque>[] = {
100103

101104
template <> const std::string c2py::tp_doc<opaque> = R"DOC()DOC" + c2py::tp_ctor_doc<opaque>;
102105
template <> inline constexpr auto c2py::tp_name<opaque2> = "ignore.Opaque2";
103-
static auto init_0 = c2py::dispatcher_c_kw_t{c2py::c_constructor<opaque2>()};
104-
template <> constexpr initproc c2py::tp_init<opaque2> = c2py::pyfkw_constructor<init_0>;
105-
template <> const std::string c2py::tp_ctor_doc<opaque2> = init_0.doc(R"DOC()DOC");
106+
static auto init_1 = c2py::dispatcher_c_kw_t{c2py::c_constructor<opaque2>()};
107+
template <> constexpr initproc c2py::tp_init<opaque2> = c2py::pyfkw_constructor<init_1>;
108+
template <> const std::string c2py::tp_ctor_doc<opaque2> = init_1.doc(R"DOC()DOC");
106109

107110
// ----- Method table ----
108111
template <>

0 commit comments

Comments
 (0)