diff --git a/python/paddle_serving_server/env_check/run.py b/python/paddle_serving_server/env_check/run.py index 9b1ed150a064d2546e5b196bddfb43fcda65708a..f7ad73652024f808743a2599d4eb848ef06e1a75 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 faa1640ea2fa76ad4d24635eacf28a83c10542ea..8b115c521eab8bd60fd4f8c448149b074ac5fb92 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')