Skip to content

Commit

Permalink
Shuffle new static_assert() and leave error messages blank (they ar…
Browse files Browse the repository at this point in the history
…e more distracting than helpful here).
  • Loading branch information
rwgk committed Oct 12, 2024
1 parent b7c4fe9 commit b778cc6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ class Args : public py::args {};

} // namespace test_class

static_assert(!py::detail::is_same_or_base_of<
py::args,
test_class::pr5396_forward_declared_class::ForwardClass>::value,
"ForwardClass is not the same or base of py::args.");
static_assert(py::detail::is_same_or_base_of<py::args, py::args>::value, "py::args is py::args.");
static_assert(py::detail::is_same_or_base_of<py::args, py::args>::value, "");
static_assert(
py::detail::is_same_or_base_of<py::args,
test_class::pr5396_forward_declared_class::Args>::value,
"Args is subclass of py::args.");
"");
static_assert(!py::detail::is_same_or_base_of<
py::args,
test_class::pr5396_forward_declared_class::ForwardClass>::value,
"");

TEST_SUBMODULE(class_, m) {
m.def("obj_class_name", [](py::handle obj) { return py::detail::obj_class_name(obj.ptr()); });
Expand Down

0 comments on commit b778cc6

Please sign in to comment.