Skip to content

Commit b778cc6

Browse files
committed
Shuffle new static_assert() and leave error messages blank (they are more distracting than helpful here).
1 parent b7c4fe9 commit b778cc6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_class.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ class Args : public py::args {};
6060

6161
} // namespace test_class
6262

63-
static_assert(!py::detail::is_same_or_base_of<
64-
py::args,
65-
test_class::pr5396_forward_declared_class::ForwardClass>::value,
66-
"ForwardClass is not the same or base of py::args.");
67-
static_assert(py::detail::is_same_or_base_of<py::args, py::args>::value, "py::args is py::args.");
63+
static_assert(py::detail::is_same_or_base_of<py::args, py::args>::value, "");
6864
static_assert(
6965
py::detail::is_same_or_base_of<py::args,
7066
test_class::pr5396_forward_declared_class::Args>::value,
71-
"Args is subclass of py::args.");
67+
"");
68+
static_assert(!py::detail::is_same_or_base_of<
69+
py::args,
70+
test_class::pr5396_forward_declared_class::ForwardClass>::value,
71+
"");
7272

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

0 commit comments

Comments
 (0)