diff --git a/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py b/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py index 46e8870821dd2e27bda21d7e1a0dbbadd1c907a1..bb9cb4a8860cdb6e2218f61f2bf3ba3a54787196 100644 --- a/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py +++ b/python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py @@ -190,7 +190,7 @@ class DistPassTestBase(unittest.TestCase): else: output_dir = "test_without_pass_{}".format(pid) remove_path_if_exists(output_dir) - os.makedirs(output_dir, mode=777) + os.makedirs(output_dir, mode=0o777) input_dump_file = os.path.join(output_dir, 'inputs.bin') model_dump_file = os.path.join(output_dir, 'model.bin') @@ -269,7 +269,7 @@ class DistPassTestBase(unittest.TestCase): class PassConflictChecker(DistPassTestBase): def setUp(self): - os.environ['DEBUG'] = '1' # to save the debug directory + os.environ['DEBUG'] = '0' super().setUp() def pass_config(self):