Skip to content

Commit b8c6688

Browse files
authored
fix tmp directories (#48863)
1 parent 22bfa57 commit b8c6688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/fluid/tests/unittests/distributed_passes/dist_pass_test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _distributed_launch(self, model, apply_pass, gpus=None, **kwargs):
190190
else:
191191
output_dir = "test_without_pass_{}".format(pid)
192192
remove_path_if_exists(output_dir)
193-
os.makedirs(output_dir, mode=777)
193+
os.makedirs(output_dir, mode=0o777)
194194

195195
input_dump_file = os.path.join(output_dir, 'inputs.bin')
196196
model_dump_file = os.path.join(output_dir, 'model.bin')
@@ -269,7 +269,7 @@ def _distributed_launch(self, model, apply_pass, gpus=None, **kwargs):
269269

270270
class PassConflictChecker(DistPassTestBase):
271271
def setUp(self):
272-
os.environ['DEBUG'] = '1' # to save the debug directory
272+
os.environ['DEBUG'] = '0'
273273
super().setUp()
274274

275275
def pass_config(self):

0 commit comments

Comments
 (0)