File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 131131 # ray train extras required for prediction tests
132132 "ray[train]" ,
133133 # Framework version constraints copied from testing_extra_require
134- "scikit-learn" ,
134+ "scikit-learn<1.6.0 " ,
135135 "tensorflow" ,
136136 "torch >= 2.0.0, < 2.1.0" ,
137137 "xgboost" ,
204204 "kfp >= 2.6.0, < 3.0.0" ,
205205 "pytest-asyncio" ,
206206 "pytest-xdist" ,
207- "scikit-learn" ,
207+ "scikit-learn<1.6.0; python_version<='3.10'" ,
208+ "scikit-learn; python_version>'3.10'" ,
208209 # Lazy import requires > 2.12.0
209210 "tensorflow == 2.13.0; python_version<='3.11'" ,
210211 "tensorflow == 2.16.1; python_version>'3.11'" ,
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ mlflow==1.30.1 # Pinned to speed up installation
1111pytest-xdist==3.3.1 # Pinned to unbreak unit tests
1212IPython # Added to test supernova rich html buttons
1313pandas==2.1.4 # Pandas must be <2.2.0 to be compatible with ray 2.9.3
14+ scikit-learn<1.6.0 # Breaking Ray 2.9.3
Original file line number Diff line number Diff line change 1717
1818import re
1919from typing import Dict , List , Tuple
20- from unittest import mock
21- from unittest .mock import call , patch
20+ from unittest .mock import patch
2221
23- from google .api_core import operation as ga_operation
2422from google .cloud import aiplatform
2523from google .cloud .aiplatform import base
2624
@@ -84,9 +82,7 @@ def create_feature_monitor_job_mock():
8482 FeatureRegistryServiceClient ,
8583 "create_feature_monitor_job" ,
8684 ) as create_feature_monitor_job_mock :
87- create_feature_monitor_job_mock .return_value = (
88- _TEST_FG1_FMJ1
89- )
85+ create_feature_monitor_job_mock .return_value = _TEST_FG1_FMJ1
9086 yield create_feature_monitor_job_mock
9187
9288
You can’t perform that action at this time.
0 commit comments