Skip to content

Commit cf6729e

Browse files
[test] update tags (#119)
fixed by compiler-research/CPyCppyy#74 & #121 `test19_keywords_and_defaults` fixed by compiler-research/CPyCppyy#73
1 parent 3a30ebc commit cf6729e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/test_advancedcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def test21_access_to_global_variables(self):
722722
assert len(cppyy.gbl.gtestv1) == 1
723723
assert len(cppyy.gbl.gtestv2) == 1
724724

725-
@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
725+
@mark.xfail(run=False, condition=IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
726726
def test22_exceptions(self):
727727
"""Catching of C++ exceptions"""
728728

test/test_doc_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def abstract_method2(self):
452452
assert cppyy.gbl.call_abstract_method1(pc) == "first message"
453453
assert cppyy.gbl.call_abstract_method2(pc) == "second message"
454454

455-
@mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
455+
@mark.xfail(run=False, condition=IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon")
456456
def test_exceptions(self):
457457
"""Exception throwing and catching"""
458458

@@ -1242,7 +1242,7 @@ def test_autocast_and_identiy(self):
12421242
assert type(b) == CC.Derived
12431243
assert d is b
12441244

1245-
@mark.xfail(run=not IS_MAC_ARM, reason="Seg Faults")
1245+
@mark.xfail(condition=IS_MAC_ARM, run=False, reason="Seg Faults")
12461246
def test_exceptions(self):
12471247
"""Exceptions example"""
12481248

test/test_overloads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test09_bool_int_overloads(self):
205205
with raises(ValueError):
206206
cpp.BoolInt4.fff(2)
207207

208-
@mark.xfail(run=not IS_MAC_ARM, reason="Seg Faults")
208+
@mark.xfail(run=not IS_MAC_ARM, condition=IS_MAC, reason="Seg Faults")
209209
def test10_overload_and_exceptions(self):
210210
"""Prioritize reporting C++ exceptions from callee"""
211211

test/test_pythonify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def verify_b(b, val, ti, to):
496496
with raises(TypeError):
497497
c.callme(a=1, b=2)
498498

499-
@mark.xfail
499+
@mark.xfail(condition=(not IS_CLANG_REPL) or IS_MAC, reason="Fails on Cling and OSX")
500500
def test19_keywords_and_defaults(self):
501501
"""Use of keyword arguments mixed with defaults"""
502502

test/test_stltypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ def run_raiseit(t1, t2):
20302030
gc.collect()
20312031
assert cppyy.gbl.GetMyErrorCount() == 0
20322032

2033-
@mark.xfail(run=not IS_MAC_ARM, reason="Seg Faults")
2033+
@mark.xfail(condition=(IS_MAC_X86 and not IS_CLANG_REPL) or IS_MAC_ARM, run=not IS_MAC_ARM, reason="Seg Faults")
20342034
def test04_from_cpp(self):
20352035
"""Catch C++ exceptiosn from C++"""
20362036

0 commit comments

Comments
 (0)