test_unnamed_namespace_a.py
Go to the documentation of this file.
1 from __future__ import annotations
2 
3 import pytest
4 
5 from pybind11_tests import unnamed_namespace_a as m
6 from pybind11_tests import unnamed_namespace_b as mb
7 
8 XFAIL_CONDITION = (
9  "(m.PYBIND11_INTERNALS_VERSION <= 4 and (m.defined___clang__ or not m.defined___GLIBCXX__))"
10  " or "
11  "(m.PYBIND11_INTERNALS_VERSION >= 5 and not m.defined_WIN32_or__WIN32"
12  " and "
13  "(m.defined___clang__ or m.defined__LIBCPP_VERSION))"
14 )
15 XFAIL_REASON = "Known issues: https://github.com/pybind/pybind11/pull/4319"
16 
17 
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]
21 )
23  assert any_struct is not None
24 
25 
27  assert (
28  m.unnamed_namespace_a_any_struct is not None
29  or mb.unnamed_namespace_b_any_struct is not None
30  )
31 
32 
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
test_unnamed_namespace_a.test_have_both_class_any_struct
def test_have_both_class_any_struct()
Definition: test_unnamed_namespace_a.py:34
test_unnamed_namespace_a.test_have_at_least_one_class_any_struct
def test_have_at_least_one_class_any_struct()
Definition: test_unnamed_namespace_a.py:26
test_unnamed_namespace_a.test_have_class_any_struct
def test_have_class_any_struct(any_struct)
Definition: test_unnamed_namespace_a.py:22


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:39:32