File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
tests/integ/sagemaker/remote_function Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,3 @@ Jinja2==3.0.3
22
22
pandas>=1.3.5,<1.5
23
23
scikit-learn==1.0.2
24
24
cloudpickle==2.2.0
25
- tblib==1.7.0
Original file line number Diff line number Diff line change 17
17
import os
18
18
19
19
from sagemaker .remote_function import remote
20
+ from sagemaker .remote_function .errors import RuntimeEnvironmentError
20
21
21
22
from tests .integ .kms_utils import get_or_create_kms_key
22
23
from tests .integ import DATA_DIR
23
- from sagemaker .exceptions import UnexpectedStatusException
24
24
25
25
ROLE = "SageMakerRole"
26
26
@@ -45,7 +45,6 @@ def divide(x, y):
45
45
assert divide (20 , 2 ) == 10
46
46
47
47
48
- @pytest .mark .skip
49
48
def test_decorated_function_raises_exception (
50
49
sagemaker_session , dummy_container_without_error , cpu_instance_type
51
50
):
@@ -133,11 +132,7 @@ def test_with_non_existent_dependencies(
133
132
def divide (x , y ):
134
133
return x / y
135
134
136
- # TODO: this should raise RuntimeEnvironmentError
137
- # Currently this is returning UnexpectedStatusException due to how `job.wait()` is implemented
138
- # in remote_function's client. We are correctly throwing RuntimeEnvironmentError from
139
- # Runtime env module
140
- with pytest .raises (UnexpectedStatusException ):
135
+ with pytest .raises (RuntimeEnvironmentError ):
141
136
divide (10 , 2 )
142
137
143
138
You can’t perform that action at this time.
0 commit comments