Skip to content

Commit 100aa9b

Browse files
author
Qian Chen
committed
test3
1 parent 283efbd commit 100aa9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit/test_handler_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ def __init__(self):
5151

5252

5353
@patch('sagemaker_inference.environment.Environment')
54-
@patch('importlib.util.spec_from_file_location', MagicMock())
5554
@patch('importlib.util.module_from_spec', return_value=UserModuleTransformFn())
5655
@patch('os.path.exists', return_value=True)
57-
def test_user_module_transform_fn(path_exists, module_from_spec, spec_from_file_location, env):
56+
def test_user_module_transform_fn(path_exists, module_from_spec, env):
5857
env.return_value.module_name = MODULE_NAME
5958
transformer = HandlerService._user_module_transformer()
6059

0 commit comments

Comments
 (0)