From 59420d5bd29cd7c51b23e5d08f64b5a696c9817d Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 31 Oct 2018 09:22:59 +0800 Subject: [PATCH] Polish code test=develop --- python/paddle/fluid/tests/unittests/test_dist_base.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_dist_base.py b/python/paddle/fluid/tests/unittests/test_dist_base.py index a669111f30..0836518401 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_base.py +++ b/python/paddle/fluid/tests/unittests/test_dist_base.py @@ -221,12 +221,8 @@ class TestDistBase(unittest.TestCase): print(ps0_cmd) print(ps1_cmd) - if check_error_log: - ps0_pipe = open("/tmp/ps0_err.log", "wb") - ps1_pipe = open("/tmp/ps1_err.log", "wb") - else: - ps0_pipe = subprocess.PIPE - ps1_pipe = subprocess.PIPE + ps0_pipe = open("/tmp/ps0_err.log", "wb") + ps1_pipe = open("/tmp/ps1_err.log", "wb") ps0_proc = subprocess.Popen( ps0_cmd.strip().split(" "), -- GitLab