diff --git a/python_tests/artifact/test_backend.py b/python_tests/artifact/test_backend.py index c9caec1d..56fdf6f5 100644 --- a/python_tests/artifact/test_backend.py +++ b/python_tests/artifact/test_backend.py @@ -128,6 +128,10 @@ def test_study_artifact_not_found() -> None: assert status == 404 +@pytest.mark.skipif( + version.parse(optuna.__version__) < version.parse("3.4.0"), + reason="upload_artiract needs storage", +) def test_successful_study_artifact_retrieval() -> None: storage = optuna.storages.InMemoryStorage() study = optuna.create_study(storage=storage) @@ -263,6 +267,10 @@ def test_upload_artifact() -> None: assert data == "dummy_content" +@pytest.mark.skipif( + version.parse(optuna.__version__) < version.parse("3.4.0"), + reason="upload_artiract needs storage", +) def test_delete_study_artifact() -> None: storage = optuna.storages.InMemoryStorage() study = optuna.create_study(storage=storage) diff --git a/python_tests/test_csv_download.py b/python_tests/test_csv_download.py index dc2d3ee6..6a9e57cd 100644 --- a/python_tests/test_csv_download.py +++ b/python_tests/test_csv_download.py @@ -11,8 +11,8 @@ import pytest from .wsgi_client import send_request -if version.parse(optuna.__version__) < version.parse("3.2.0"): - pytest.skip("Study.metrics_name is introduced at v3.2.0", allow_module_level=True) +if version.parse(optuna.__version__) < version.parse("3.4.0"): + pytest.skip("Study.metrics_name is introduced at v3.4.0", allow_module_level=True) def _validate_output(