test(compiler): disable exception tests on macos temporarily

This commit is contained in:
youben11
2023-03-22 14:29:25 +01:00
committed by Ayoub Benaissa
parent 568d0e2912
commit 9e79c4750d
2 changed files with 22 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import platform
import pytest
import os.path
import shutil
@@ -298,6 +299,11 @@ def test_compile_and_run_auto_parallelize(
)
# FIXME #51
@pytest.mark.xfail(
platform.system() == "Darwin",
reason="MacOS have issues with translating Cpp exceptions",
)
@pytest.mark.parametrize(
"mlir_input, args, expected_result", end_to_end_parallel_fixture
)
@@ -352,6 +358,11 @@ def test_compile_and_run_loop_parallelize(
)
# FIXME #51
@pytest.mark.xfail(
platform.system() == "Darwin",
reason="MacOS have issues with translating Cpp exceptions",
)
@pytest.mark.parametrize(
"mlir_input, args",
[
@@ -384,6 +395,11 @@ def test_compile_and_run_invalid_arg_number(
compile_run_assert(engine, mlir_input, args, None, keyset_cache)
# FIXME #51
@pytest.mark.xfail(
platform.system() == "Darwin",
reason="MacOS have issues with translating Cpp exceptions",
)
@pytest.mark.parametrize(
"mlir_input",
[

View File

@@ -1,3 +1,4 @@
import platform
import pytest
from concrete import compiler
@@ -85,6 +86,11 @@ def test_valid_mlir_inputs(mlir_input):
compiler.round_trip(mlir_input)
# FIXME #51
@pytest.mark.xfail(
platform.system() == "Darwin",
reason="MacOS have issues with translating Cpp exceptions",
)
@pytest.mark.parametrize("mlir_input", INVALID_INPUTS)
def test_invalid_mlir_inputs(mlir_input):
# We need to check that invalud inputs are raising an error