From 82cc858a7929f1fb16e2200a21590edcf488738e Mon Sep 17 00:00:00 2001 From: Naoto Mizuno Date: Fri, 13 Oct 2023 11:08:51 +0900 Subject: [PATCH] Fix test for Python 3.7 --- python_tests/preferential/samplers/test_gp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_tests/preferential/samplers/test_gp.py b/python_tests/preferential/samplers/test_gp.py index a249f4b2..136959a7 100644 --- a/python_tests/preferential/samplers/test_gp.py +++ b/python_tests/preferential/samplers/test_gp.py @@ -3,11 +3,11 @@ from unittest.mock import patch import numpy as np import pytest -import torch if sys.version_info >= (3, 8): from optuna_dashboard.preferential.samplers.gp import _one_side_trunc_norm_sampling + import torch else: pytest.skip("BoTorch dropped Python3.7 support", allow_module_level=True)