@@ -228,10 +228,6 @@ def test_main_success_pipeline_step_with_root_user(
228
228
_exit_process .assert_called_with (0 )
229
229
230
230
231
- @patch (
232
- "sagemaker.remote_function.runtime_environment.runtime_environment_manager."
233
- "RuntimeEnvironmentManager._validate_sagemaker_pysdk_version"
234
- )
235
231
@patch (
236
232
"sagemaker.remote_function.runtime_environment.runtime_environment_manager."
237
233
"RuntimeEnvironmentManager._validate_python_version"
@@ -260,7 +256,6 @@ def test_main_failure_remote_job_with_root_user(
260
256
write_failure ,
261
257
_exit_process ,
262
258
validate_python ,
263
- validate_sagemaker ,
264
259
):
265
260
runtime_err = RuntimeEnvironmentError ("some failure reason" )
266
261
bootstrap_runtime .side_effect = runtime_err
@@ -269,17 +264,12 @@ def test_main_failure_remote_job_with_root_user(
269
264
270
265
change_dir_permission .assert_not_called ()
271
266
validate_python .assert_called_once_with (TEST_PYTHON_VERSION , TEST_JOB_CONDA_ENV )
272
- validate_sagemaker .assert_called_once_with (TEST_SAGEMAKER_PYSDK_VERSION )
273
267
run_pre_exec_script .assert_not_called ()
274
268
bootstrap_runtime .assert_called ()
275
269
write_failure .assert_called_with (str (runtime_err ))
276
270
_exit_process .assert_called_with (1 )
277
271
278
272
279
- @patch (
280
- "sagemaker.remote_function.runtime_environment.runtime_environment_manager."
281
- "RuntimeEnvironmentManager._validate_sagemaker_pysdk_version"
282
- )
283
273
@patch (
284
274
"sagemaker.remote_function.runtime_environment.runtime_environment_manager."
285
275
"RuntimeEnvironmentManager._validate_python_version"
@@ -308,7 +298,6 @@ def test_main_failure_pipeline_step_with_root_user(
308
298
write_failure ,
309
299
_exit_process ,
310
300
validate_python ,
311
- validate_sagemaker ,
312
301
):
313
302
runtime_err = RuntimeEnvironmentError ("some failure reason" )
314
303
bootstrap_runtime .side_effect = runtime_err
@@ -317,7 +306,6 @@ def test_main_failure_pipeline_step_with_root_user(
317
306
318
307
change_dir_permission .assert_not_called ()
319
308
validate_python .assert_called_once_with (TEST_PYTHON_VERSION , TEST_JOB_CONDA_ENV )
320
- validate_sagemaker .assert_called_once_with (TEST_SAGEMAKER_PYSDK_VERSION )
321
309
run_pre_exec_script .assert_not_called ()
322
310
bootstrap_runtime .assert_called ()
323
311
write_failure .assert_called_with (str (runtime_err ))
0 commit comments