Skip to content

Commit

Permalink
[test] update tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Dec 3, 2024
1 parent 19303c2 commit 82c31df
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion test/test_advancedcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,6 @@ class Y {
y = cppyy.gbl.PrintingNS.Y()
assert str(y) == 'Y'

@mark.xfail
def test26_using_directive(self):
"""Test using directive in namespaces"""

Expand Down
1 change: 0 additions & 1 deletion test/test_cpp11features.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def test05_unique_ptr_passing(self):
gc.collect()
assert TestSmartPtr.s_counter == 0

@mark.xfail
def test06_nullptr(self):
"""Allow the programmer to pass NULL in certain cases"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_crossinheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_value(self):
assert c4.m_int == 88
assert CX.IBase2.call_get_value(c4) == 77

@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
@mark.xfail(condition=IS_MAC, run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
def test04_arguments(self):
"""Test ability to override functions that take arguments"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def test24_C_style_enum(self):
CSE.your_enum = CSE.YourEnum.kFour
assert CSE.your_enum == CSE.YourEnum.kFour

@mark.xfail
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="Fails with OSX-Cling")
def test25_const_iterator(self):
"""const_iterator failed to resolve the proper return type"""

Expand Down
15 changes: 7 additions & 8 deletions test/test_stltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ def setup_class(cls):
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N

@mark.xfail
def test01_builtin_type_vector_types(self):
"""Test access to std::vector<int>/std::vector<double>"""

Expand Down Expand Up @@ -255,7 +254,7 @@ def test01_builtin_type_vector_types(self):
assert v.size() == self.N
assert len(v) == self.N

@mark.xfail
@mark.xfail(condition=IS_MAC, run=not IS_MAC, reason="Crashes on OSX")
def test02_user_type_vector_type(self):
"""Test access to an std::vector<just_a_class>"""

Expand Down Expand Up @@ -389,7 +388,7 @@ def test06_vector_indexing(self):
assert v2[-1] == v[-2]
assert v2[self.N-4] == v[-2]

@mark.xfail(run=not((IS_MAC_ARM or IS_MAC_X86) and not IS_CLANG_REPL))
@mark.xfail(condition=(IS_MAC and not IS_CLANG_REPL), run=not(IS_MAC and not IS_CLANG_REPL), reason="Crashes on OSX")
def test07_vector_bool(self):
"""Usability of std::vector<bool> which can be a specialization"""

Expand Down Expand Up @@ -1040,7 +1039,7 @@ def setup_class(cls):
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = 13

@mark.xfail
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="Fails with OSX-Cling")
def test01_builtin_list_type(self):
"""Test access to a list<int>"""

Expand Down Expand Up @@ -1078,7 +1077,7 @@ def test01_builtin_list_type(self):
for val in a:
assert ll[ll.index(val)] == val

@mark.xfail
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="Fails with OSX-Cling")
def test02_empty_list_type(self):
"""Test behavior of empty list<int>"""

Expand Down Expand Up @@ -1139,7 +1138,7 @@ def test05_list_cpp17_style(self):
v = cppyy.gbl.std.list(l)
assert list(l) == l

@mark.xfail
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="Fails with OSX-Cling")
def test06_convert_list_of_strings(self):
"""Convert list of strings from C++ to Python types"""

Expand Down Expand Up @@ -1414,7 +1413,7 @@ def test02_STL_like_class_iterators(self):
assert len(b) == 3
assert sum(b) == 6

@mark.xfail
@mark.xfail(condition=not IS_MAC and IS_CLANG_REPL, run=False, reason="Crashes on Ubuntu cling-REPL")
def test03_stllike_preinc(self):
"""STL-like class with preinc by-ref returns"""

Expand Down Expand Up @@ -1697,7 +1696,7 @@ def setup_class(cls):
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N

@mark.xfail
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="Fails with OSX-Cling")
def test01_set_iteration(self):
"""Iterate over a set"""

Expand Down

0 comments on commit 82c31df

Please sign in to comment.