diff --git a/tests/common/data_types/test_dtypes_helpers.py b/tests/common/data_types/test_dtypes_helpers.py index d853d2b26..2ba821c8c 100644 --- a/tests/common/data_types/test_dtypes_helpers.py +++ b/tests/common/data_types/test_dtypes_helpers.py @@ -206,13 +206,13 @@ def test_mix_scalar_values(value1, value2, expected_mixed_value): ClearTensor(Integer(7, False), (1, 2, 3)), EncryptedScalar(Integer(7, False)), None, - marks=pytest.mark.xfail(raises=AssertionError), + marks=pytest.mark.xfail(strict=True, raises=AssertionError), ), pytest.param( ClearTensor(Integer(7, False), (1, 2, 3)), ClearTensor(Integer(7, False), (3, 2, 1)), None, - marks=pytest.mark.xfail(raises=AssertionError), + marks=pytest.mark.xfail(strict=True, raises=AssertionError), ), ], ) diff --git a/tests/numpy/test_compile.py b/tests/numpy/test_compile.py index 022b8cfb2..6e3d6347b 100644 --- a/tests/numpy/test_compile.py +++ b/tests/numpy/test_compile.py @@ -53,7 +53,7 @@ def small_fused_table(x): no_fuse_unhandled, ((-2, 2), (-2, 2)), ["x", "y"], - marks=pytest.mark.xfail(raises=ValueError), + marks=pytest.mark.xfail(strict=True, raises=ValueError), ), ], )