@@ -499,6 +499,7 @@ class PairVector {
499499 ll4 [1 ] = 'a'
500500 raises (TypeError , a .vector_pair , ll4 )
501501
502+ @mark .xfail (condition = (not IS_CLANG_REPL ) and (IS_MAC_ARM or IS_MAC_X86 ), reason = "Fails on OS X Cling" )
502503 def test12_vector_lifeline (self ):
503504 """Check lifeline setting on vectors of objects"""
504505
@@ -704,6 +705,7 @@ class Point3D {
704705
705706 assert cppsum == pysum
706707
708+ @mark .xfail (condition = (not IS_CLANG_REPL ) and (IS_MAC_ARM or IS_MAC_X86 ), reason = "Fails on OS X Cling" )
707709 def test20_vector_cstring (self ):
708710 """Usage of a vector of const char*"""
709711
@@ -836,7 +838,7 @@ def test04_array_of_strings(self):
836838 for k in range (2 ):
837839 assert str_array_4 [i ][j ][k ] == vals [i * 4 + j * 2 + k ]
838840
839- @mark .xfail (condition = IS_CLANG_REPL , run = False , reason = "Crashes with ClangRepl with 'toString not implemented'" )
841+ @mark .xfail (run = False , reason = "Crashes with ClangRepl with 'toString not implemented' and fails on OS X Cling " )
840842 def test05_stlstring_and_unicode (self ):
841843 """Mixing unicode and std::string"""
842844
@@ -994,7 +996,7 @@ def EQ(result, init, methodname, *args):
994996 assert s .rfind ('c' ) < 0
995997 assert s .rfind ('c' ) == s .npos
996998
997- @mark .xfail (condition = IS_CLANG_REPL , run = False , reason = "Crashes with ClangRepl with 'toString not implemented'" )
999+ @mark .xfail (run = False , reason = "Crashes with ClangRepl with 'toString not implemented' and fails on OS X Cling " )
9981000 def test10_string_in_repr_and_str_bytes (self ):
9991001 """Special cases for __str__/__repr__"""
10001002
@@ -1216,6 +1218,7 @@ def test02_keyed_maptype(self):
12161218
12171219 assert len (a ) == self .N
12181220
1221+ @mark .xfail (condition = (not IS_CLANG_REPL ) and (IS_MAC_ARM or IS_MAC_X86 ), reason = "Fails on OS X Cling" )
12191222 def test03_empty_maptype (self ):
12201223 """Test behavior of empty map<int,int>"""
12211224
@@ -1665,6 +1668,7 @@ def setup_class(cls):
16651668 cls .stltypes = cppyy .load_reflection_info (cls .test_dct )
16661669 cls .N = cppyy .gbl .N
16671670
1671+ @mark .xfail (condition = (not IS_CLANG_REPL ) and (IS_MAC_ARM or IS_MAC_X86 ), reason = "Fails on OS X Cling" )
16681672 def test01_deque_byvalue_regression (self ):
16691673 """Return by value of a deque used to crash"""
16701674
@@ -1946,7 +1950,7 @@ def test01_basics(self):
19461950 assert YourError .__cpp_name__ == 'ErrorNamespace::YourError'
19471951 assert YourError .__module__ == 'cppyy.gbl.ErrorNamespace'
19481952
1949- @mark .xfail ( condition = IS_CLANG_REPL , reason = "Fails with ClangRepl" )
1953+ @mark .xfail
19501954 def test02_raising (self ):
19511955 """Raise a C++ std::exception derived class as a Python excption"""
19521956
@@ -1983,7 +1987,7 @@ def raiseit(cls):
19831987 except cppyy .gbl .YourError as e :
19841988 assert e .what () == 'Oops'
19851989
1986- @mark .xfail (condition = IS_CLANG_REPL , reason = "Fails with ClangRepl" )
1990+ @mark .xfail (condition = ( IS_CLANG_REPL ) or (( IS_MAC_ARM or IS_MAC_X86 ) and ( not IS_CLANG_REPL )) , reason = "Fails with ClangRepl and OS X Cling " )
19871991 def test03_memory (self ):
19881992 """Memory handling of C++ c// helper for exception base class testing"""
19891993
0 commit comments