File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 113113 "eu-south-1" ,
114114]
115115NO_AUTO_ML_REGIONS = [
116- "sa-east-1" ,
117- "me-south-1" ,
118- "ap-east-1" ,
119116 "eu-west-3" ,
120117 "af-south-1" ,
121118 "eu-south-1" ,
Original file line number Diff line number Diff line change 1818import tests .integ
1919from sagemaker import AutoML , CandidateEstimator , AutoMLInput
2020
21- from sagemaker .exceptions import UnexpectedStatusException
21+ from botocore .exceptions import ClientError
2222from sagemaker .utils import unique_name_from_base
2323from tests .integ import DATA_DIR , AUTO_ML_DEFAULT_TIMEMOUT_MINUTES , auto_ml_utils
2424from tests .integ .timeout import timeout
@@ -142,7 +142,9 @@ def test_auto_ml_invalid_target_attribute(sagemaker_session):
142142 job_name = unique_name_from_base ("auto-ml" , max_length = 32 )
143143 inputs = sagemaker_session .upload_data (path = TRAINING_DATA , key_prefix = PREFIX + "/input" )
144144 with pytest .raises (
145- UnexpectedStatusException , match = "Could not complete the data builder processing job."
145+ ClientError ,
146+ match = r"An error occurred \(ValidationException\) when calling the CreateAutoMLJob "
147+ "operation: Target attribute name y does not exist in header." ,
146148 ):
147149 auto_ml .fit (inputs , job_name = job_name )
148150
You can’t perform that action at this time.
0 commit comments