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 1212# language governing permissions and limitations under the License.
1313from __future__ import absolute_import
1414
15+ import re
1516import os
1617import pytest
1718
@@ -290,10 +291,8 @@ def test_start_local_pipeline_with_wrong_parameter_type(sagemaker_local_session)
290291 local_pipeline = sagemaker .local .entities ._LocalPipeline (pipeline )
291292 with pytest .raises (ClientError ) as error :
292293 local_pipeline .start (PipelineParameters = {"MyStr" : True })
293- assert (
294- f"Unexpected type for parameter '{ parameter .name } '. Expected "
295- f"{ parameter .parameter_type .python_type } but found { type (True )} ." in str (error .value )
296- )
294+ expected_error_pattern = r"Unexpected type for parameter 'MyStr'\. Expected .* but found <class 'bool'>\."
295+ assert re .search (expected_error_pattern , str (error .value ))
297296
298297
299298def test_start_local_pipeline_with_empty_parameter_string_value (
Original file line number Diff line number Diff line change 3434
3535EXPECTED_DEPENDENCY_MAP = {
3636 "requests" : "==2.26.0" ,
37- "numpy" : ">=1.20.0 " ,
37+ "numpy" : "==1.26.4 " ,
3838 "pandas" : "<=1.3.3" ,
3939 "matplotlib" : "<3.5.0" ,
4040 "scikit-learn" : ">0.24.1" ,
You can’t perform that action at this time.
0 commit comments