From 8c87e0df4053d0255c1feffe1c394e32ac853b5f Mon Sep 17 00:00:00 2001 From: felixhjh <852142024@qq.com> Date: Thu, 13 Jan 2022 04:35:57 +0000 Subject: [PATCH] add del os.environ --- python/paddle_serving_server/env_check/run.py | 2 +- python/paddle_serving_server/env_check/test_uci_pipeline.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle_serving_server/env_check/run.py b/python/paddle_serving_server/env_check/run.py index 9b1ed150..f7ad7365 100644 --- a/python/paddle_serving_server/env_check/run.py +++ b/python/paddle_serving_server/env_check/run.py @@ -53,7 +53,7 @@ def run_test_cases(cases_list, case_type, is_open_std): print("{} {} environment running failure, if you need this environment, please refer to https://github.com/PaddlePaddle/Serving/blob/develop/doc/Install_CN.md".format(case_type, case_name)) def unset_env(key): - os.unsetenv(key) + del os.environ[key] def check_env(mode): diff --git a/python/paddle_serving_server/env_check/test_uci_pipeline.py b/python/paddle_serving_server/env_check/test_uci_pipeline.py index faa1640e..8b115c52 100644 --- a/python/paddle_serving_server/env_check/test_uci_pipeline.py +++ b/python/paddle_serving_server/env_check/test_uci_pipeline.py @@ -25,7 +25,7 @@ class TestUCIPipeline(object): def teardown_method(self): print_log(["stderr.log", "stdout.log", - "PipelineServingLogs/pipeline.log"], iden="after predict") + "PipelineServingLogs/pipeline.log"]) kill_process(9998) kill_process(18082) self.serving_util.release('web_service') -- GitLab