11import py , os , sys
22from pytest import raises , skip , mark
3- from .support import setup_make , ispypy , IS_WINDOWS , IS_CLANG_REPL , IS_CLANG_DEBUG , IS_MAC , IS_MAC_X86 , IS_MAC_ARM , IS_LINUX_ARM
3+ from .support import setup_make , ispypy , IS_WINDOWS , IS_CLANG_REPL , IS_CLING , IS_CLANG_DEBUG , IS_MAC , IS_MAC_X86 , IS_MAC_ARM , IS_LINUX_ARM
44
55currpath = py .path .local (__file__ ).dirpath ()
66test_dct = str (currpath .join ("doc_helperDict" ))
@@ -9,7 +9,7 @@ def setup_module(mod):
99 setup_make ("doc_helper" )
1010
1111
12- @mark .skipif (( IS_MAC_ARM or IS_MAC_X86 ) and ( not IS_CLANG_REPL ) , reason = "setup class fails with OS X cling" )
12+ @mark .skipif (IS_MAC and IS_CLING , reason = "setup class fails with OS X cling" )
1313class TestDOCFEATURES :
1414 def setup_class (cls ):
1515 cls .test_dct = test_dct
@@ -485,7 +485,7 @@ def test_exceptions(self):
485485 assert caught == True
486486
487487
488- @mark .skipif (( IS_MAC_ARM or IS_MAC_X86 ) and ( not IS_CLANG_REPL ) , reason = "setup class fails with OS X cling" )
488+ @mark .skipif (IS_MAC and IS_CLING , reason = "setup class fails with OS X cling" )
489489class TestTUTORIALFEATURES :
490490 def setup_class (cls ):
491491 import cppyy
@@ -574,7 +574,7 @@ def test02_python_introspection(self):
574574 assert not isinstance (i , int )
575575 assert isinstance (i , Integer1 )
576576
577- @mark .xfail (run = (not IS_MAC and IS_CLANG_REPL ), condition = IS_MAC and ( not IS_CLANG_REPL ) , reason = "Crashes on OS X Cling" )
577+ @mark .xfail (run = (not IS_MAC and IS_CLANG_REPL ), condition = IS_MAC and IS_CLING , reason = "Crashes on OS X Cling" )
578578 def test03_STL_containers (self ):
579579 """Instantiate STL containers with new class"""
580580
@@ -612,7 +612,7 @@ def pythonizor(klass, name):
612612 i2 = Integer2 (13 )
613613 assert int (i2 ) == 13
614614
615- @mark .xfail (condition = IS_MAC and not IS_CLANG_REPL , reason = "Fails on OSX Cling" )
615+ @mark .xfail (condition = IS_MAC and IS_CLING , reason = "Fails on OSX Cling" )
616616 def test06_add_operator (self ):
617617 """Add operator+"""
618618
@@ -735,7 +735,7 @@ def test10_stl_algorithm(self):
735735 assert n == 'thisisaC++stringing'
736736
737737
738- @mark .skipif (( IS_MAC_ARM or IS_MAC_X86 ) and ( not IS_CLANG_REPL ) , reason = "setup class fails with OS X cling" )
738+ @mark .skipif (IS_MAC and IS_CLING , reason = "setup class fails with OS X cling" )
739739class TestADVERTISED :
740740 def setup_class (cls ):
741741 import cppyy
@@ -850,7 +850,7 @@ def test03_use_of_ctypes_and_enum(self):
850850 assert list (arr ) == [1 , 42 , 1 , 42 ]
851851 cppyy .gbl .free (vp )
852852
853- @mark .xfail (run = (not IS_MAC and IS_CLANG_REPL ), condition = IS_MAC and ( not IS_CLANG_REPL ) , reason = "Crashes on OS X Cling" )
853+ @mark .xfail (run = (not IS_MAC and IS_CLANG_REPL ), condition = IS_MAC and IS_CLING , reason = "Crashes on OS X Cling" )
854854 def test04_ptr_ptr_python_owns (self ):
855855 """Example of ptr-ptr use where python owns"""
856856
@@ -1074,7 +1074,7 @@ def produce_imp(self):
10741074
10751075# The series of tests below mostly exists already in other places, but these
10761076# were used as examples for the CaaS' cppyy presentation and are preserved here.
1077- @mark .skipif (( IS_MAC_ARM or IS_MAC_X86 ) and ( not IS_CLANG_REPL ) , reason = "setup class fails with OS X cling" )
1077+ @mark .skipif (IS_MAC and IS_CLING , reason = "setup class fails with OS X cling" )
10781078class TestTALKEXAMPLES :
10791079 def setup_class (cls ):
10801080 import cppyy
0 commit comments