11import py , os , sys
22from pytest import mark , raises , skip
3- from .support import setup_make , IS_CLANG_REPL
3+ from .support import setup_make , IS_CLANG_REPL , IS_MAC_X86 , IS_MAC_ARM
44
55noboost = False
66if not (os .path .exists (os .path .join (os .path .sep , 'usr' , 'include' , 'boost' )) or \
@@ -15,6 +15,7 @@ def setup_class(cls):
1515
1616 cppyy .include ('boost/any.hpp' )
1717
18+ @mark .skipif ((IS_MAC_ARM or IS_MAC_X86 ), reason = "Fails to include boost on OS X" )
1819 def test01_any_class (self ):
1920 """Availability of boost::any"""
2021
@@ -67,7 +68,7 @@ def test02_any_usage(self):
6768 assert len (extract ) == 200
6869
6970
70- @mark .skipif (noboost == True , reason = "boost not found" )
71+ @mark .skipif ((( noboost == True ) or IS_MAC_ARM or IS_MAC_X86 ) , reason = "boost not found" )
7172class TestBOOSTOPERATORS :
7273 def setup_class (cls ):
7374 import cppyy
@@ -134,7 +135,7 @@ class C { }; } """)
134135 assert type (boost .get ['BV::C' ](v [2 ])) == cpp .BV .C
135136
136137
137- @mark .skipif (noboost == True , reason = "boost not found" )
138+ @mark .skipif ((( noboost == True ) or IS_MAC_ARM or IS_MAC_X86 ) , reason = "boost not found" )
138139class TestBOOSTERASURE :
139140 def setup_class (cls ):
140141 import cppyy
0 commit comments