From f1c1946bf9e5e4b6f520479e7d65c9287ea09db9 Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Sat, 9 Nov 2024 09:41:28 +0000 Subject: [PATCH] [test] update tags fixed by compiler-research/CPyCppyy#67 --- test/test_datatypes.py | 2 +- test/test_doc_features.py | 2 +- test/test_pythonify.py | 4 ++-- test/test_stltypes.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_datatypes.py b/test/test_datatypes.py index c9a3bcdc..1422a5dc 100644 --- a/test/test_datatypes.py +++ b/test/test_datatypes.py @@ -1726,7 +1726,7 @@ def test33_pointer_to_array(self): assert type(f) == AoS.Foo assert type(bar.fArr[0]) == AoS.Foo - @mark.xfail + @mark.xfail(condition=IS_MAC, reason="Fails in OSX") def test34_object_pointers(self): """Read/write access to objects through pointers""" diff --git a/test/test_doc_features.py b/test/test_doc_features.py index 92ef477f..a6cece08 100644 --- a/test/test_doc_features.py +++ b/test/test_doc_features.py @@ -387,7 +387,7 @@ def test_unary_operators(sef): pass - @mark.xfail(run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon") + @mark.xfail(condition=IS_MAC, run=not IS_MAC_ARM, reason="Crashes with exception not being caught on Apple Silicon") def test_x_inheritance(self): import cppyy from cppyy.gbl import Abstract, Concrete, call_abstract_method diff --git a/test/test_pythonify.py b/test/test_pythonify.py index 6ad0587a..a9d94f65 100644 --- a/test/test_pythonify.py +++ b/test/test_pythonify.py @@ -1,6 +1,6 @@ import py, os, sys from pytest import raises, skip, mark -from .support import setup_make, pylong, ispypy, IS_CLANG_REPL, IS_MAC_ARM, IS_MAC_X86 +from .support import setup_make, pylong, ispypy, IS_CLANG_REPL, IS_MAC_ARM, IS_MAC_X86, IS_MAC currpath = py.path.local(__file__).dirpath() test_dct = str(currpath.join("example01Dict")) @@ -244,7 +244,7 @@ def test09_memory(self): # TODO: need ReferenceError on touching pl_a - @mark.xfail + @mark.xfail(condition=IS_MAC, reason="Fails in OSX") def test10_default_arguments(self): """Test propagation of default function arguments""" diff --git a/test/test_stltypes.py b/test/test_stltypes.py index 1d5d315d..e46e4771 100644 --- a/test/test_stltypes.py +++ b/test/test_stltypes.py @@ -789,7 +789,7 @@ def test02_string_data_access(self): assert c.m_string == s assert c.get_string1() == s - @mark.xfail + @mark.xfail(condition=IS_MAC, reason="Fails in OSX") def test03_string_with_null_character(self): """Test that strings with NULL do not get truncated"""