1 from __future__
import annotations
5 from pybind11_tests
import unnamed_namespace_a
as m
6 from pybind11_tests
import unnamed_namespace_b
as mb
9 "(m.PYBIND11_INTERNALS_VERSION <= 4 and (m.defined___clang__ or not m.defined___GLIBCXX__))"
11 "(m.PYBIND11_INTERNALS_VERSION >= 5 and not m.defined_WIN32_or__WIN32"
13 "(m.defined___clang__ or m.defined__LIBCPP_VERSION))"
15 XFAIL_REASON =
"Known issues: https://github.com/pybind/pybind11/pull/4319"
18 @pytest.mark.xfail(XFAIL_CONDITION, reason=XFAIL_REASON, strict=
False)
19 @pytest.mark.parametrize(
20 "any_struct", [m.unnamed_namespace_a_any_struct, mb.unnamed_namespace_b_any_struct]
23 assert any_struct
is not None
28 m.unnamed_namespace_a_any_struct
is not None
29 or mb.unnamed_namespace_b_any_struct
is not None
33 @pytest.mark.xfail(XFAIL_CONDITION, reason=XFAIL_REASON, strict=
True)
35 assert m.unnamed_namespace_a_any_struct
is not None
36 assert mb.unnamed_namespace_b_any_struct
is not None