|
1 | 1 | import py, os, sys |
2 | 2 | from pytest import raises, skip, mark |
3 | | -from .support import setup_make, pylong, IS_MAC_ARM, IS_CLANG_REPL, IS_CLANG_DEBUG |
| 3 | +from .support import setup_make, pylong, IS_MAC_ARM, IS_MAC_X86, IS_CLANG_REPL, IS_CLANG_DEBUG |
4 | 4 |
|
5 | 5 |
|
6 | 6 | currpath = py.path.local(__file__).dirpath() |
@@ -230,6 +230,7 @@ def get_value(self): |
230 | 230 | p1 = TPyDerived1() |
231 | 231 | assert p1.get_value() == 13 |
232 | 232 |
|
| 233 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
233 | 234 | def test08_error_handling(self): |
234 | 235 | """Python errors should propagate through wrapper""" |
235 | 236 |
|
@@ -506,6 +507,7 @@ def __init__(self): |
506 | 507 | assert m.get_data() == 42 |
507 | 508 | assert m.get_data_v() == 42 |
508 | 509 |
|
| 510 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
509 | 511 | def test15_object_returns(self): |
510 | 512 | """Return of C++ objects from overridden functions""" |
511 | 513 |
|
@@ -573,6 +575,7 @@ def whoami(self): |
573 | 575 | assert not not new_obj |
574 | 576 | assert new_obj.whoami() == "PyDerived4" |
575 | 577 |
|
| 578 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
576 | 579 | def test16_cctor_access_controlled(self): |
577 | 580 | """Python derived class of C++ class with access controlled cctor""" |
578 | 581 |
|
@@ -614,6 +617,7 @@ def whoami(self): |
614 | 617 | obj = PyDerived() |
615 | 618 | assert ns.callit(obj) == "PyDerived" |
616 | 619 |
|
| 620 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
617 | 621 | def test17_deep_hierarchy(self): |
618 | 622 | """Test a deep Python hierarchy with pure virtual functions""" |
619 | 623 |
|
@@ -660,6 +664,7 @@ def whoami(self): |
660 | 664 | assert obj.whoami() == "PyDerived4" |
661 | 665 | assert ns.callit(obj) == "PyDerived4" |
662 | 666 |
|
| 667 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
663 | 668 | def test18_abstract_hierarchy(self): |
664 | 669 | """Hierarchy with abstract classes""" |
665 | 670 |
|
@@ -992,6 +997,7 @@ def verify(a, n1, n2, n3): |
992 | 997 | a = MyPyDerived(27, 55, nArgs=2) |
993 | 998 | verify(a, 27, 55, 67) |
994 | 999 |
|
| 1000 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
995 | 1001 | def test23_const_byvalue_return(self): |
996 | 1002 | """Const by-value return in overridden method""" |
997 | 1003 |
|
@@ -1235,6 +1241,7 @@ class MyPyDerived(ns.Derived): |
1235 | 1241 | assert obj.calc2() == 2 |
1236 | 1242 | assert ns.callback2(obj) == 2 |
1237 | 1243 |
|
| 1244 | + @mark.xfail(condition=IS_MAC_X86, reason="Fails on OS X x86") |
1238 | 1245 | def test28_cross_deep(self): |
1239 | 1246 | """Deep inheritance hierarchy""" |
1240 | 1247 |
|
|
0 commit comments