Skip to content

Commit

Permalink
[test] Update tags
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj0 committed Sep 30, 2024
1 parent 8a448c7 commit b7e88af
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion test/test_advancedcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def test03a_namespace_lookup_on_update(self):
assert gbl.a_ns.d_ns.i_class.j_class.s_j == 333
assert gbl.a_ns.d_ns.i_class.j_class().m_j == -10

@mark.xfail(run=False, reason="Crashes")
def test04_template_types(self):
"""Test bindings of templated types"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ def test40_more_aggregates(self):
r2 = ns.make_R2()
assert r2.s.x == 1

@mark.xfail(run=False, reason="Clang-Repl")
@mark.xfail(run=not IS_CLANG_REPL, reason="Clang-Repl")
def test41_complex_numpy_arrays(self):
"""Usage of complex numpy arrays"""

Expand Down
8 changes: 3 additions & 5 deletions test/test_doc_features.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import py, os, sys
from pytest import raises, skip, mark
from .support import setup_make, ispypy, IS_WINDOWS, IS_CLANG_REPL, IS_CLANG_DEBUG, IS_MAC_X86, IS_MAC_ARM
from .support import setup_make, ispypy, IS_WINDOWS, IS_CLANG_REPL, IS_CLANG_DEBUG, IS_MAC, IS_MAC_X86, IS_MAC_ARM

currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("doc_helperDict"))
Expand Down Expand Up @@ -575,7 +575,7 @@ def test02_python_introspection(self):
assert not isinstance(i, int)
assert isinstance(i, Integer1)

@mark.xfail(run=False, condition=(IS_MAC_ARM or IS_MAC_X86) and (not IS_CLANG_REPL), reason= "Crashes on OS X Cling")
@mark.xfail(run=(not IS_MAC and IS_CLANG_REPL), condition=IS_MAC and (not IS_CLANG_REPL), reason= "Crashes on OS X Cling")
def test03_STL_containers(self):
"""Instantiate STL containers with new class"""

Expand Down Expand Up @@ -852,7 +852,7 @@ def test03_use_of_ctypes_and_enum(self):
assert list(arr) == [1, 42, 1, 42]
cppyy.gbl.free(vp)

@mark.xfail(run=False, condition=(IS_MAC_ARM or IS_MAC_X86) and (not IS_CLANG_REPL), reason= "Crashes on OS X Cling")
@mark.xfail(run=(not IS_MAC and IS_CLANG_REPL), condition=IS_MAC and (not IS_CLANG_REPL), reason= "Crashes on OS X Cling")
def test04_ptr_ptr_python_owns(self):
"""Example of ptr-ptr use where python owns"""

Expand Down Expand Up @@ -994,7 +994,6 @@ def test08_voidptr_array(self):
assert n.p[2] == 0x3
assert len(n.p) == 3

@mark.xfail(condition=IS_CLANG_REPL, run=False, reason="Crashes with ClangRepl with 'toString not implemented'")
def test09_custom_str(self):
"""Example of customized str"""

Expand Down Expand Up @@ -1167,7 +1166,6 @@ def test_fallbacks(self):
assert CC.passT(2**64-1) == 2**64-1
assert 'unsigned long long' in CC.passT.__doc__

@mark.xfail(condition=IS_CLANG_REPL, run=False, reason="Crashes on Clang-REPL")
def test_callbacks(self):
"""Function callback example"""

Expand Down
2 changes: 0 additions & 2 deletions test/test_fragile.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ def test07_unnamed_enum(self):

g = fragile.G()

@mark.xfail(condition=IS_CLANG_REPL, run=False, reason="Crashes on Clang-REPL")
def test08_unhandled_scoped_datamember(self):
"""Test that an unhandled scoped data member does not cause infinite recursion"""

Expand Down Expand Up @@ -476,7 +475,6 @@ def test19_gbl_contents(self):
assert not 'ESysConstants' in dd
assert not 'kDoRed' in dd

@mark.xfail(run=False, reason="Crashes")
def test20_capture_output(self):
"""Capture cerr into a string"""

Expand Down
1 change: 0 additions & 1 deletion test/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ def py2c(pyargs):
with raises(TypeError):
cppyy.gbl.ArrayOfCStrings.takes_array_of_cstrings(pyargs, len(pyargs))

@mark.xfail(run=False, reason="Valgrind")
def test11_array_of_const_char_ref(self):
"""Test passting of const char**&"""

Expand Down
3 changes: 0 additions & 3 deletions test/test_stltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,6 @@ def test04_array_of_strings(self):
for k in range(2):
assert str_array_4[i][j][k] == vals[i*4+j*2+k]

@mark.xfail(run=False, reason="Crashes with ClangRepl with 'toString not implemented' and fails on OS X Cling")
def test05_stlstring_and_unicode(self):
"""Mixing unicode and std::string"""

Expand Down Expand Up @@ -996,7 +995,6 @@ def EQ(result, init, methodname, *args):
assert s.rfind('c') < 0
assert s.rfind('c') == s.npos

@mark.xfail(run=False, reason="Crashes with ClangRepl with 'toString not implemented' and fails on OS X Cling")
def test10_string_in_repr_and_str_bytes(self):
"""Special cases for __str__/__repr__"""

Expand Down Expand Up @@ -1578,7 +1576,6 @@ def test03_array_of_pointer_to_pods(self):
assert gbl.ArrayTest.get_pa_px(a.data(), i) == 13*i
assert gbl.ArrayTest.get_pa_py(a.data(), i) == 42*i

@mark.xfail(run=False, reason="Crashes")
def test04_array_from_aggregate(self):
"""Initialize an array from an aggregate contructor"""

Expand Down
1 change: 0 additions & 1 deletion test/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def test02_std_cout(self):

assert not (cppyy.gbl.std.cout is None)

@mark.xfail(run=False, reason="Crashes")
def test03_consistent_naming_if_char_traits(self):
"""Naming consistency if char_traits"""

Expand Down

0 comments on commit b7e88af

Please sign in to comment.