@@ -25,7 +25,6 @@ def setup_class(cls):
2525 cls .datatypes = cppyy .load_reflection_info (cls .test_dct )
2626 cls .N = cppyy .gbl .N
2727
28- @mark .xfail (strict = True )
2928 def test01_instance_data_read_access (self ):
3029 """Read access to instance public data and verify values"""
3130
@@ -196,7 +195,6 @@ def test01_instance_data_read_access(self):
196195
197196 c .__destruct__ ()
198197
199- @mark .xfail (strict = True )
200198 def test02_instance_data_write_access (self ):
201199 """Test write access to instance public data and verify values"""
202200
@@ -733,7 +731,6 @@ def test10_enum(self):
733731 assert gbl .EnumSpace .AA == 1
734732 assert gbl .EnumSpace .BB == 2
735733
736- @mark .xfail (strict = True )
737734 def test11_typed_enums (self ):
738735 """Determine correct types of enums"""
739736
@@ -776,7 +773,6 @@ class Test {
776773 assert type (sc .vraioufaux .faux ) == bool # no bool as base class
777774 assert isinstance (sc .vraioufaux .faux , bool )
778775
779- @mark .xfail (strict = True )
780776 def test12_enum_scopes (self ):
781777 """Enum accessibility and scopes"""
782778
@@ -1102,7 +1098,6 @@ def test21_object_validity(self):
11021098
11031099 assert not d2
11041100
1105- @mark .xfail (strict = True )
11061101 def test22_buffer_shapes (self ):
11071102 """Correctness of declared buffer shapes"""
11081103
@@ -1266,7 +1261,7 @@ def run(self, f, buf, total):
12661261 run (self , cppyy .gbl .sum_uc_data , buf , total )
12671262 run (self , cppyy .gbl .sum_byte_data , buf , total )
12681263
1269- @mark .xfail (strict = True , run = not IS_MAC and not IS_WINDOWS , reason = "Fails on all platforms; crashes on macOS with " \
1264+ @mark .xfail (condition = IS_MAC , run = not IS_MAC and not IS_WINDOWS , reason = "Fails on all platforms; crashes on macOS with " \
12701265 "libc++abi: terminating due to uncaught exception" )
12711266 def test26_function_pointers (self ):
12721267 """Function pointer passing"""
@@ -1545,7 +1540,6 @@ def test30_multi_dim_arrays_of_builtins(test):
15451540 p = (ctype * len (buf )).from_buffer (buf )
15461541 assert [p [j ] for j in range (width * height )] == [2 * j for j in range (width * height )]
15471542
1548- @mark .xfail (strict = True )
15491543 def test31_anonymous_union (self ):
15501544 """Anonymous unions place there fields in the parent scope"""
15511545
@@ -1639,7 +1633,6 @@ def test31_anonymous_union(self):
16391633 assert type (p .data_c [0 ]) == float
16401634 assert p .intensity == 5.
16411635
1642- @mark .xfail (strict = True )
16431636 def test32_anonymous_struct (self ):
16441637 """Anonymous struct creates an unnamed type"""
16451638
@@ -1688,7 +1681,6 @@ class Foo2 {
16881681
16891682 assert 'foo' in dir (ns .libuntitled1_ExportedSymbols ().kotlin .root .com .justamouse .kmmdemo )
16901683
1691- @mark .xfail (strict = True )
16921684 def test33_pointer_to_array (self ):
16931685 """Usability of pointer to array"""
16941686
@@ -2049,7 +2041,6 @@ def test40_more_aggregates(self, capfd):
20492041 output = (captured .out + captured .err ).lower ()
20502042 assert "error:" not in output
20512043
2052- @mark .xfail (strict = True )
20532044 def test41_complex_numpy_arrays (self , capfd ):
20542045 """Usage of complex numpy arrays"""
20552046
@@ -2233,7 +2224,6 @@ def test45_const_ref_data(self):
22332224 b = ns .B ()
22342225 assert b .body1 .name == b .body2 .name
22352226
2236- @mark .xfail (strict = True )
22372227 def test46_small_int_enums (self ):
22382228 """Proper typing of small int enums"""
22392229
@@ -2288,7 +2278,6 @@ def test46_small_int_enums(self):
22882278 assert ns .func_int8 () == - 1
22892279 assert ns .func_uint8 () == 255
22902280
2291- @mark .xfail (strict = True )
22922281 def test47_hidden_name_enum (self ):
22932282 """Usage of hidden name enum"""
22942283
0 commit comments