Skip to content

Commit 20cb8ec

Browse files
aaronj0vgvassilev
authored andcommitted
Update boost tests for OS X x86
1 parent 19e3390 commit 20cb8ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_boost.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import py, os, sys
22
from 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

55
noboost = False
66
if 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")
7172
class 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")
138139
class TestBOOSTERASURE:
139140
def setup_class(cls):
140141
import cppyy

0 commit comments

Comments
 (0)