diff --git a/tests/test_distribution.py b/tests/test_distribution.py index 5b4de7ed..c0a3d93b 100644 --- a/tests/test_distribution.py +++ b/tests/test_distribution.py @@ -1,7 +1,12 @@ import numpy as np +import sys, pytest from tqdm import tqdm + from hyperactive import Hyperactive +if sys.platform.startswith("win"): + pytest.skip("skip these tests for windows", allow_module_level=True) + def objective_function(opt): score = -opt["x1"] * opt["x1"] diff --git a/tests/test_empty_output/test_empty_output.py b/tests/test_empty_output/test_empty_output.py index dddef388..16788e8b 100644 --- a/tests/test_empty_output/test_empty_output.py +++ b/tests/test_empty_output/test_empty_output.py @@ -1,4 +1,9 @@ -import os, sys, subprocess +import os, sys, subprocess, pytest + + +if sys.platform.startswith("win"): + pytest.skip("skip these tests for windows", allow_module_level=True) + here = os.path.dirname(os.path.abspath(__file__)) diff --git a/tests/test_search_spaces.py b/tests/test_search_spaces.py index 859c23e1..f8f59d38 100644 --- a/tests/test_search_spaces.py +++ b/tests/test_search_spaces.py @@ -1,9 +1,14 @@ +import sys, pytest import numpy as np import pandas as pd from hyperactive import Hyperactive +if sys.platform.startswith("win"): + pytest.skip("skip these tests for windows", allow_module_level=True) + + def test_search_space_0(): def objective_function(opt): score = -opt["x1"] * opt["x1"] diff --git a/tests/test_warm_starts/test_memory_warm_start.py b/tests/test_warm_starts/test_memory_warm_start.py index e229c03b..2aebbc05 100644 --- a/tests/test_warm_starts/test_memory_warm_start.py +++ b/tests/test_warm_starts/test_memory_warm_start.py @@ -1,11 +1,15 @@ import time -import pytest +import pytest, sys import numpy as np import pandas as pd from hyperactive import Hyperactive +if sys.platform.startswith("win"): + pytest.skip("skip these tests for windows", allow_module_level=True) + + def func1(): pass diff --git a/tests/test_warm_starts/test_warm_start.py b/tests/test_warm_starts/test_warm_start.py index b32fde01..3a2e2a8d 100644 --- a/tests/test_warm_starts/test_warm_start.py +++ b/tests/test_warm_starts/test_warm_start.py @@ -1,11 +1,15 @@ import time -import pytest +import pytest, sys import numpy as np import pandas as pd from hyperactive import Hyperactive +if sys.platform.startswith("win"): + pytest.skip("skip these tests for windows", allow_module_level=True) + + def func1(): pass diff --git a/tests/test_warm_starts/test_warm_start_smbo.py b/tests/test_warm_starts/test_warm_start_smbo.py index 57c0519d..b818e58e 100644 --- a/tests/test_warm_starts/test_warm_start_smbo.py +++ b/tests/test_warm_starts/test_warm_start_smbo.py @@ -1,5 +1,5 @@ import time -import pytest +import pytest, sys import numpy as np import pandas as pd @@ -14,6 +14,10 @@ ) +if sys.platform.startswith("win"): + pytest.skip("skip these tests for windows", allow_module_level=True) + + def func1(): pass