Skip to content

Commit

Permalink
[test] Update tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Sep 28, 2024
1 parent ace71c9 commit d725437
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions test/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ def test09_global_ptr(self):
assert gbl.g_pod.m_int == 43
assert gbl.g_pod.m_double == 2.14

@mark.xfail
def test10_enum(self):
"""Test access to enums"""

Expand Down Expand Up @@ -781,7 +780,6 @@ class Test {
assert type(sc.vraioufaux.faux) == bool # no bool as base class
assert isinstance(sc.vraioufaux.faux, bool)

@mark.xfail
def test12_enum_scopes(self):
"""Enum accessibility and scopes"""

Expand Down
2 changes: 0 additions & 2 deletions test/test_doc_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def test_casting(self):
e = bind_object(addressof(d), Abstract)
assert type(e) == cppyy.gbl.Abstract

@mark.xfail(condition=IS_CLANG_REPL, reason="Fails with ClangRepl")
def test_classes_and_structs(self):
import cppyy
from cppyy.gbl import Concrete, Namespace
Expand Down Expand Up @@ -939,7 +938,6 @@ def test06_c_char_p(self):
val = createit(ptr)
assert destroyit(ptr) == val

@mark.xfail
def test07_array_of_arrays(self):
"""Example of array of array usage"""

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

assert 'operator<' not in dirS

@mark.xfail(condition=IS_CLANG_REPL, reason="Fails with ClangRepl")
def test12_imports(self):
"""Test ability to import from namespace (or fail with ImportError)"""

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

assert cppyy.types.LowLevelView

@mark.xfail
def test02_builtin_cpp_casts(self):
"""C++ casting of builtin types"""

Expand Down
5 changes: 2 additions & 3 deletions test/test_stltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,6 @@ def setup_class(cls):
import cppyy
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)

@mark.xfail(condition=IS_CLANG_REPL, reason="Fails with ClangRepl")
def test01_basics(self):
"""Test behavior of std::exception derived classes"""

Expand Down Expand Up @@ -1950,7 +1949,7 @@ def test01_basics(self):
assert YourError.__cpp_name__ == 'ErrorNamespace::YourError'
assert YourError.__module__ == 'cppyy.gbl.ErrorNamespace'

@mark.xfail(condition = IS_MAC or (IS_LINUX and IS_CLANG_REPL), reason="Fails on OS X")
@mark.xfail(condition=IS_MAC, reason="Fails on OS X")
def test02_raising(self):
"""Raise a C++ std::exception derived class as a Python excption"""

Expand Down Expand Up @@ -1987,7 +1986,7 @@ def raiseit(cls):
except cppyy.gbl.YourError as e:
assert e.what() == 'Oops'

@mark.xfail(condition=(IS_CLANG_REPL) or ((IS_MAC_ARM or IS_MAC_X86) and (not IS_CLANG_REPL)), reason="Fails with ClangRepl and OS X Cling")
@mark.xfail(condition=(IS_MAC_ARM or IS_MAC_X86) and (not IS_CLANG_REPL), reason="Fails with OS X Cling")
def test03_memory(self):
"""Memory handling of C++ c// helper for exception base class testing"""

Expand Down
4 changes: 1 addition & 3 deletions test/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test04_variadic_function(self):

assert cppyy.gbl.test04_variadic_func['int', 'double', 'void*']() == 3

@mark.xfail
@mark.xfail(condition=not IS_CLANG_REPL, reason="Fails with Cling")
def test05_variadic_overload(self):
"""Call an overloaded variadic function"""

Expand Down Expand Up @@ -342,7 +342,6 @@ def test13_using_templated_method(self):
assert type(d.get3()) == int
assert d.get3() == 5

@mark.xfail(condition=IS_CLANG_REPL, reason="Fails on Clang-REPL")
def test14_templated_return_type(self):
"""Use of a templated return type"""

Expand Down Expand Up @@ -565,7 +564,6 @@ def test21_type_deduction_with_conversion(self):
assert l2v.test3[int]([d1]) == 1
assert l2v.test3[int]([d1, d1]) == 2

@mark.xfail(condition=IS_CLANG_REPL, reason="Fails on Clang-REPL")
def test22_type_deduction_of_proper_integer_size(self):
"""Template type from integer arg should be big enough"""

Expand Down

0 comments on commit d725437

Please sign in to comment.