Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust failing tests #55

Merged
merged 1 commit into from
Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/test_advancedcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def test20_overload_order_with_proper_return(self):
assert cppyy.gbl.overload_one_way().gime() == 1
assert cppyy.gbl.overload_the_other_way().gime() == "aap"

@mark.xfail(run=not IS_CLANG_REPL, reason="Valgrind Clang-Repl")
@mark.xfail(run=not IS_CLANG_REPL, reason="Valgrind issue on Clang-Repl")
def test21_access_to_global_variables(self):
"""Access global_variables_and_pointers"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_crossinheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def call(self):
gc.collect()
assert CB.s_count == 0 + start_count

@mark.xfail
@mark.xfail(run=IS_CLANG_REPL, reason="Crashes otherwise")
def test11_python_in_make_shared(self):
"""Usage of Python derived objects with std::make_shared"""

Expand Down
1 change: 1 addition & 0 deletions test/test_doc_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,7 @@ def test_fallbacks(self):
assert CC.passT(2**64-1) == 2**64-1
assert 'unsigned long long' in CC.passT.__doc__

@mark.xfail(run=not IS_CLANG_REPL, reason="Crashes otherwise")
def test_callbacks(self):
"""Function callback example"""

Expand Down
5 changes: 2 additions & 3 deletions test/test_lowlevel.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, pylong, pyunicode, IS_WINDOWS, ispypy
from .support import setup_make, pylong, pyunicode, IS_WINDOWS, ispypy, IS_CLANG_REPL

currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("datatypesDict"))
Expand Down Expand Up @@ -307,7 +307,6 @@ def test07_ctypes_pointer_types(self):
val = ctd.set_void_ppm(ptr)
assert ctd.freeit(ptr) == val

@mark.xfail(reason="Valgrind")
def test08_ctypes_type_correctness(self):
"""If types don't match with ctypes, expect exceptions"""

Expand Down Expand Up @@ -370,7 +369,7 @@ def py2c(pyargs):
with raises(TypeError):
cppyy.gbl.ArrayOfCStrings.takes_array_of_cstrings(pyargs, len(pyargs))

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

Expand Down