@@ -273,6 +273,7 @@ def sum_value(self, val):
273273 assert 'ValueError' in res
274274 assert os .path .basename (__file__ ) in res
275275
276+ @mark .xfail (run = not IS_MAC_ARM , condition = IS_MAC_ARM , reason = "Crashes with exception not being caught on Apple Silicon" )
276277 def test09_interface_checking (self ):
277278 """Conversion errors should be Python exceptions"""
278279
@@ -507,7 +508,7 @@ def __init__(self):
507508 assert m .get_data () == 42
508509 assert m .get_data_v () == 42
509510
510- @mark .xfail (condition = IS_MAC_X86 , reason = "Fails on OS X x86 " )
511+ @mark .xfail (condition = IS_MAC_X86 or IS_MAC_ARM , reason = "Fails on OS X" )
511512 def test15_object_returns (self ):
512513 """Return of C++ objects from overridden functions"""
513514
@@ -575,7 +576,7 @@ def whoami(self):
575576 assert not not new_obj
576577 assert new_obj .whoami () == "PyDerived4"
577578
578- @mark .xfail (condition = IS_MAC_X86 , reason = "Fails on OS X x86 " )
579+ @mark .xfail (condition = IS_MAC_X86 or IS_MAC_ARM , reason = "Fails on OS X" )
579580 def test16_cctor_access_controlled (self ):
580581 """Python derived class of C++ class with access controlled cctor"""
581582
@@ -617,7 +618,7 @@ def whoami(self):
617618 obj = PyDerived ()
618619 assert ns .callit (obj ) == "PyDerived"
619620
620- @mark .xfail (condition = IS_MAC_X86 , reason = "Fails on OS X x86 " )
621+ @mark .xfail (condition = IS_MAC_X86 or IS_MAC_ARM , reason = "Fails on OS X" )
621622 def test17_deep_hierarchy (self ):
622623 """Test a deep Python hierarchy with pure virtual functions"""
623624
@@ -664,7 +665,7 @@ def whoami(self):
664665 assert obj .whoami () == "PyDerived4"
665666 assert ns .callit (obj ) == "PyDerived4"
666667
667- @mark .xfail (condition = IS_MAC_X86 , reason = "Fails on OS X x86 " )
668+ @mark .xfail (condition = IS_MAC_X86 or IS_MAC_ARM , reason = "Fails on OS X" )
668669 def test18_abstract_hierarchy (self ):
669670 """Hierarchy with abstract classes"""
670671
@@ -997,7 +998,7 @@ def verify(a, n1, n2, n3):
997998 a = MyPyDerived (27 , 55 , nArgs = 2 )
998999 verify (a , 27 , 55 , 67 )
9991000
1000- @mark .xfail (condition = IS_MAC_X86 , reason = "Fails on OS X x86 " )
1001+ @mark .xfail (condition = IS_MAC_X86 or IS_MAC_ARM , reason = "Fails on OS X" )
10011002 def test23_const_byvalue_return (self ):
10021003 """Const by-value return in overridden method"""
10031004
@@ -1241,7 +1242,7 @@ class MyPyDerived(ns.Derived):
12411242 assert obj .calc2 () == 2
12421243 assert ns .callback2 (obj ) == 2
12431244
1244- @mark .xfail (condition = IS_MAC_X86 , reason = "Fails on OS X x86 " )
1245+ @mark .xfail (condition = IS_MAC_X86 or IS_MAC_ARM , reason = "Fails on OS X" )
12451246 def test28_cross_deep (self ):
12461247 """Deep inheritance hierarchy"""
12471248
0 commit comments