diff --git a/test/test_advancedcpp.py b/test/test_advancedcpp.py index eb283a94..bb39a786 100644 --- a/test/test_advancedcpp.py +++ b/test/test_advancedcpp.py @@ -688,7 +688,6 @@ 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_VALGRIND, condition =(IS_LINUX and IS_CLING), reason="Fails on Linux Cling") def test21_access_to_global_variables(self): """Access global_variables_and_pointers""" diff --git a/test/test_boost.py b/test/test_boost.py index 63e75cf6..921fac67 100644 --- a/test/test_boost.py +++ b/test/test_boost.py @@ -28,7 +28,6 @@ def test01_any_class(self): assert std.list[any] - @mark.xfail(run=False) def test02_any_usage(self): """boost::any assignment and casting""" @@ -101,7 +100,6 @@ def setup_class(cls): cppyy.include("boost/variant/variant.hpp") cppyy.include("boost/variant/get.hpp") - @mark.xfail(run=False) def test01_variant_usage(self): """boost::variant usage""" diff --git a/test/test_cpp11features.py b/test/test_cpp11features.py index 3b181886..480956b9 100644 --- a/test/test_cpp11features.py +++ b/test/test_cpp11features.py @@ -270,7 +270,6 @@ def moveit(T): assert cppyy.gbl.TestMoving1.s_instance_counter == 0 assert cppyy.gbl.TestMoving2.s_instance_counter == 0 - @mark.xfail def test08_initializer_list(self): """Initializer list construction""" @@ -453,7 +452,6 @@ def test15_unique_ptr_template_deduction(self): with raises(ValueError): # not an RValue cppyy.gbl.UniqueTempl.returnptr[int](uptr_in) - @mark.xfail(run = not IS_CLING, reason = "Does not crash on Cling, but the failure causes subsequent tests to fail") def test16_unique_ptr_moves(self): """std::unique_ptr requires moves""" diff --git a/test/test_crossinheritance.py b/test/test_crossinheritance.py index c170043c..7c58839b 100644 --- a/test/test_crossinheritance.py +++ b/test/test_crossinheritance.py @@ -341,7 +341,6 @@ def call(self): gc.collect() assert CB.s_count == 0 + start_count - @mark.xfail(run=False, condition=IS_CLING, reason="Crashes on Cling") def test11_python_in_make_shared(self): """Usage of Python derived objects with std::make_shared""" diff --git a/test/test_datatypes.py b/test/test_datatypes.py index 10ede101..60c1caa5 100644 --- a/test/test_datatypes.py +++ b/test/test_datatypes.py @@ -1752,7 +1752,6 @@ def test34_object_pointers(self): assert c.s_strp == "noot" assert sn == "noot" # set through pointer - @mark.xfail def test35_restrict(self): """Strip __restrict keyword from use""" diff --git a/test/test_eigen.py b/test/test_eigen.py index 9c04a103..16d4d997 100644 --- a/test/test_eigen.py +++ b/test/test_eigen.py @@ -22,7 +22,6 @@ def setup_class(cls): warnings.simplefilter('ignore') cppyy.include('Eigen/Dense') - @mark.xfail(run=IS_CLANG_REPL, reason="Crashes with Cling") def test01_simple_matrix_and_vector(self): """Basic creation of an Eigen::Matrix and Eigen::Vector""" @@ -48,7 +47,6 @@ def test01_simple_matrix_and_vector(self): v[1] = v(0) - 1 assert v(1) == 3 and v[1] == 3 - @mark.xfail(run=IS_CLANG_REPL, reason="Crashes with Cling") def test02_comma_insertion(self): """Comma insertion overload""" @@ -102,7 +100,6 @@ def test02_comma_insertion(self): for i in range(5): assert v(i) == i+1 - @mark.xfail def test03_matrices_and_vectors(self): """Matrices and vectors""" @@ -133,7 +130,6 @@ def test03_matrices_and_vectors(self): assert (m*v).size() == v.size() - @mark.xfail(run=IS_CLANG_REPL, reason="Crashes with Cling") def test04_resizing_through_assignment(self): """Resize on assignment""" diff --git a/test/test_lowlevel.py b/test/test_lowlevel.py index 90066281..be957587 100644 --- a/test/test_lowlevel.py +++ b/test/test_lowlevel.py @@ -135,7 +135,7 @@ def test05_array_as_ref(self): f = array('f', [0]); ctd.set_float_r(f); assert f[0] == 5. f = array('d', [0]); ctd.set_double_r(f); assert f[0] == -5. - @mark.xfail(run=False, condition=IS_VALGRIND or IS_CLING, reason="Valgrind detects memory leak with invalid delete[] operator, crashes on Cling") + @mark.xfail(run=False, condition=IS_VALGRIND, reason="Valgrind detects memory leak with invalid delete[] operator, crashes on Cling") def test06_ctypes_as_ref_and_ptr(self): """Use ctypes for pass-by-ref/ptr""" diff --git a/test/test_numba.py b/test/test_numba.py index 7fd1a992..2fe2db1c 100644 --- a/test/test_numba.py +++ b/test/test_numba.py @@ -26,7 +26,6 @@ def test01_instance_box_unbox(self): with raises(TypeError): cppyy.addressof('doesnotexist') - @mark.xfail def test02_method_reflection(self): """Method reflection tooling""" @@ -51,7 +50,6 @@ class MyData_m1 {}; assert ns.MyData_m1.__init__.__cpp_reflex__(r.RETURN_TYPE, r.AS_TYPE) == ns.MyData_m1 assert ns.MyData_m1.__init__.__cpp_reflex__(r.RETURN_TYPE, r.AS_STRING) == 'ReflexTest::MyData_m1' - @mark.xfail def test03_datamember_reflection(self): """Data member reflection tooling""" @@ -119,7 +117,6 @@ def go_fast(a): assert (go_fast(x) == go_slow(x)).all() assert self.compare(go_slow, go_fast, 300000, x) - @mark.xfail def test02_JITed_template_free_func(self): """Numba-JITing of Cling-JITed templated free function""" @@ -153,7 +150,6 @@ def go_fast(a): assert (go_fast(x) == go_slow(x)).all() assert self.compare(go_slow, go_fast, 100000, x) - @mark.xfail def test03_proxy_argument_for_field(self): """Numba-JITing of a free function taking a proxy argument for field access""" @@ -187,7 +183,6 @@ def go_fast(a, d): assert((go_fast(x, d) == go_slow(x, d)).all()) assert self.compare(go_slow, go_fast, 10000, x, d) - @mark.xfail def test04_proxy_argument_for_method(self): """Numba-JITing of a free function taking a proxy argument for method access""" @@ -272,7 +267,6 @@ def tma(x): assert sum == tma(x) - @mark.xfail def test07_datatype_mapping(self): """Numba-JITing of various data types""" @@ -306,7 +300,6 @@ def access_field(d): val = getattr(nl[ntype], m)() assert access_field(getattr(ns, 'M%d'%i)(val)) == val - @mark.xfail def test08_object_returns(self): """Numba-JITing of a function that returns an object""" @@ -730,7 +723,6 @@ def setup_class(cls): import cppyy import cppyy.numba_ext - @mark.xfail def test01_templated_freefunction(self): """Numba support documentation example: free templated function""" @@ -759,7 +751,6 @@ def tsa(a): assert type(tsa(a)) == int assert tsa(a) == 285 - @mark.xfail def test02_class_features(self): """Numba support documentation example: class features""" diff --git a/test/test_regression.py b/test/test_regression.py index a63bdfc8..26de170a 100644 --- a/test/test_regression.py +++ b/test/test_regression.py @@ -235,7 +235,6 @@ def test09_gil_not_released(self): cppyy.cppdef(code) cppyy.gbl.some_foo_calling_python() - @mark.xfail(run = False, condition = IS_CLING, reason="Crashes on Cling") def test10_enum_in_global_space(self): """Enum declared in search.h did not appear in global space""" diff --git a/test/test_stltypes.py b/test/test_stltypes.py index 95ad05b1..e50e963d 100644 --- a/test/test_stltypes.py +++ b/test/test_stltypes.py @@ -1714,7 +1714,6 @@ def test01_string_through_string_view(self): assert countit(v) == 4 assert countit_cr(v) == 4 - @mark.xfail(run=not (IS_CLANG_DEBUG or IS_CLING), reason="Crashes on ClangRepl with 'toString not implemented', and on Cling") def test02_string_view_from_unicode(self): """Life-time management of converted unicode strings""" diff --git a/test/test_templates.py b/test/test_templates.py index 2b2f3c3b..59e58e8e 100644 --- a/test/test_templates.py +++ b/test/test_templates.py @@ -187,7 +187,6 @@ def test07_type_deduction(self): assert issubclass(select_template_arg[0, int, float].argument, int) assert issubclass(select_template_arg[1, int, float].argument, float) - @mark.xfail def test08_using_of_static_data(self): """Derived class using static data of base""" @@ -901,7 +900,6 @@ class Templated: public NonTemplated { ns.Templated() # used to crash - @mark.xfail(run=False, condition=IS_CLING, reason="Crashed with Cling") def test31_ltlt_in_template_name(self): """Verify lookup of template names with << in the name""" @@ -1108,7 +1106,6 @@ class TNaVU; run_n = getattr(cppyy.gbl, 'TNaRun_%d' % n) getattr(run_n, t) - @mark.xfail(run=not(IS_MAC and IS_CLING), reason="Crashes on OS X + Cling") def test33_using_template_argument(self): """`using` type as template argument""" @@ -1316,7 +1313,6 @@ def setup_class(cls): import cppyy cls.templates = cppyy.load_reflection_info(cls.test_dct) - @mark.xfail def test01_reduce_binary(self): """Squash template expressions for binary operations (like in gmpxx)"""