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 12
12
# language governing permissions and limitations under the License.
13
13
from __future__ import absolute_import
14
14
15
+ import re
15
16
import os
16
17
import pytest
17
18
@@ -290,10 +291,8 @@ def test_start_local_pipeline_with_wrong_parameter_type(sagemaker_local_session)
290
291
local_pipeline = sagemaker .local .entities ._LocalPipeline (pipeline )
291
292
with pytest .raises (ClientError ) as error :
292
293
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 ))
297
296
298
297
299
298
def test_start_local_pipeline_with_empty_parameter_string_value (
Original file line number Diff line number Diff line change 34
34
35
35
EXPECTED_DEPENDENCY_MAP = {
36
36
"requests" : "==2.26.0" ,
37
- "numpy" : ">=1.20.0 " ,
37
+ "numpy" : "==1.26.4 " ,
38
38
"pandas" : "<=1.3.3" ,
39
39
"matplotlib" : "<3.5.0" ,
40
40
"scikit-learn" : ">0.24.1" ,
You can’t perform that action at this time.
0 commit comments