Skip to content

Commit 9ccc715

Browse files
dk19ylaurenyu
andauthored
Update test/unit/test_model_server.py
Co-authored-by: Lauren Yu <[email protected]>
1 parent 19f0da0 commit 9ccc715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test_model_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ def test_adapt_to_ts_format_existing_path(
178178
def test_set_existing_python_path():
179179
torchserve._set_python_path()
180180

181-
code_dir_path = "{}:".format(environment.code_dir)
181+
code_dir_path = "{}:{}".format(environment.code_dir, PYTHON_PATH)
182182

183-
assert os.environ[torchserve.PYTHON_PATH_ENV] == code_dir_path + PYTHON_PATH
183+
assert os.environ[torchserve.PYTHON_PATH_ENV] == code_dir_path
184184

185185

186186
@patch.dict(os.environ, {}, clear=True)

0 commit comments

Comments
 (0)