Skip to content

Commit e714304

Browse files
wip: Fix CI failure #6
1 parent f2603e5 commit e714304

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_numpy_dtypes_user.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ PYBIND11_NUMPY_OBJECT_DTYPE(ObjectA);
205205
PYBIND11_NUMPY_OBJECT_DTYPE(ObjectB);
206206

207207
TEST_SUBMODULE(numpy_dtype_user, m) {
208+
// Supress warnings
209+
(void)py::detail::npy_format_descriptor<ObjectA>::name;
210+
(void)py::detail::npy_format_descriptor<ObjectB>::name;
211+
208212
ConstructorStats::type_fallback([](py::object cls) -> std::type_index* {
209213
return const_cast<std::type_index*>(py::detail::dtype_info::find_entry(cls));
210214
});

0 commit comments

Comments
 (0)