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

Add more succeeding tests #54

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
3 changes: 0 additions & 3 deletions test/test_cpp11features.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def setup_class(cls):
import cppyy
cls.cpp11features = cppyy.load_reflection_info(cls.test_dct)

@mark.xfail(reason="Valgrind")
def test01_smart_ptr(self):
"""Usage and access of std::shared/unique_ptr<>"""

Expand Down Expand Up @@ -369,7 +368,6 @@ def test11_chrono(self):
# following used to fail with compilation error
t = std.chrono.system_clock.now() + std.chrono.seconds(1)

@mark.xfail(run=False, reason="Crashes")
def test12_stdfunction(self):
"""Use of std::function with arguments in a namespace"""

Expand Down Expand Up @@ -483,7 +481,6 @@ def test16_unique_ptr_moves(self):
with raises(TypeError):
ns.returnptr_move(up)

@mark.xfail(reason="Valgrind")
def test17_unique_ptr_data(self):
"""std::unique_ptr as data means implicitly no copy ctor"""

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(run=False, reason="Crashes")
@mark.xfail
def test11_python_in_make_shared(self):
"""Usage of Python derived objects with std::make_shared"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_doc_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ class MyException : public std::exception {
with raises(CC.MyException):
CC.throw_error()

@mark.xfail(run=False, reason="Clang-Repl")
@mark.xfail
def test_unicode(self):
"""Unicode non-UTF-8 example"""

Expand Down
4 changes: 2 additions & 2 deletions test/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def test09_gil_not_released(self):
cppyy.cppdef(code)
cppyy.gbl.some_foo_calling_python()

@mark.xfail(run=False, reason="Crashes")
@mark.xfail(run=IS_CLANG_REPL, reason="Crashes otherwise")
def test10_enum_in_global_space(self):
"""Enum declared in search.h did not appear in global space"""

Expand Down Expand Up @@ -1018,7 +1018,7 @@ def test34_print_empty_collection(self):
v = cppyy.gbl.std.vector[int]()
str(v)

@mark.xfail(run=False, reason="Crashes")
@mark.xfail(run=IS_CLANG_REPL, reason="Crashes otherwise")
def test35_filesytem(self):
"""Static path object used to crash on destruction"""

Expand Down