Skip to content

Commit 8710637

Browse files
[test] update tags (#119)
fixed by compiler-research/CPyCppyy#71
1 parent bc4460d commit 8710637

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

test/test_advancedcpp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ def test11_multi_methods(self):
525525
assert m.get_multi2_int() == 2
526526
assert m.get_my_own_int() == 3
527527

528-
@mark.xfail
529528
def test12_actual_type(self):
530529
"""Test that a pointer to base return does an auto-downcast"""
531530

@@ -571,7 +570,6 @@ def test12_actual_type(self):
571570
assert cppyy.addressof(b1) == cppyy.addressof(d)
572571
assert not (b1 is d)
573572

574-
@mark.xfail
575573
def test13_actual_type_virtual_multi(self):
576574
"""Test auto-downcast in adverse inheritance situation"""
577575

test/test_crossinheritance.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ def __init__(self):
506506
assert m.get_data() == 42
507507
assert m.get_data_v() == 42
508508

509-
@mark.xfail(condition=IS_MAC, reason="Fails on OS X")
510509
def test15_object_returns(self):
511510
"""Return of C++ objects from overridden functions"""
512511

@@ -1393,7 +1392,6 @@ class Base {
13931392
class PyDerived(ns.Base):
13941393
pass
13951394

1396-
@mark.xfail
13971395
def test31_object_rebind(self):
13981396
"""Usage of bind_object to cast with Python derived objects"""
13991397

test/test_doc_features.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ def test_builtin_data(self):
186186
assert cppyy.gbl.gUint == 0
187187
raises(ValueError, setattr, cppyy.gbl, 'gUint', -1)
188188

189-
@mark.xfail
190189
def test_casting(self):
191190
import cppyy
192191
from cppyy.gbl import Abstract, Concrete
@@ -635,7 +634,7 @@ def test06_add_operator(self):
635634
k = i2 + i
636635
assert int(k) == i2.m_data + i.m_data
637636

638-
@mark.xfail
637+
@mark.xfail(condition=IS_MAC, reason="fails on OSX")
639638
def test07_run_zoo(self):
640639
"""Bunch of zoo animals running around"""
641640

@@ -1222,7 +1221,6 @@ def ann_f2(arg1, arg2):
12221221
assert CC.callT(ann_f2, 6, 7) == 3*6*7
12231222
assert round(CC.callT(ann_f1, 2)-2*3.1415, 5) == 0.
12241223

1225-
@mark.xfail
12261224
def test_autocast_and_identiy(self):
12271225
"""Auto-cast and identiy preservation example"""
12281226

test/test_pythonization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def set_size(self, buf):
111111
assert len(y) == bsize
112112
assert list(y) == list(map(lambda x: x*yval, range(bsize)))
113113

114-
@mark.xfail
114+
@mark.xfail(condition=IS_MAC and not IS_CLANG_REPL, reason="fails on OSX-Cling")
115115
def test03_type_pinning(self):
116116
"""Verify pinnability of returns"""
117117

test/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def test28_exception_as_shared_ptr(self):
791791
null = cppyy.gbl.exception_as_shared_ptr.get_shared_null()
792792
assert not null
793793

794-
@mark.xfail(run=not (IS_CLANG_REPL and IS_MAC_ARM), reason="Dispatcher fix #53 introduces canonical types with std:: namespace that introduces OS X exceptions similar to test_stltypes")
794+
@mark.xfail(run=False, condition=(not IS_CLANG_REPL and IS_MAC) or IS_MAC_ARM, reason="Dispatcher fix #53 introduces canonical types with std:: namespace that introduces OS X exceptions similar to test_stltypes")
795795
def test29_callback_pointer_values(self):
796796
"""Make sure pointer comparisons in callbacks work as expected"""
797797

0 commit comments

Comments
 (0)