Skip to content

Commit 36af35b

Browse files
committed
[test] Make scale-test compatible with Python 3
1 parent c0f97a4 commit 36af35b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/scale-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def write_input_file(args, ast, d, n):
6969

7070
def ensure_tmpdir(d):
7171
if d is not None and not os.path.exists(d):
72-
os.makedirs(d, 0700)
72+
os.makedirs(d, 0o700)
7373
return tempfile.mkdtemp(dir=d)
7474

7575

@@ -81,7 +81,7 @@ def supports_stats_output_dir(args):
8181
sd = os.path.join(d, "stats-probe")
8282

8383
try:
84-
os.makedirs(sd, 0700)
84+
os.makedirs(sd, 0o700)
8585
# Write a trivial test program and try running with
8686
# -stats-output-dir
8787
testpath = os.path.join(sd, "test.swift")

0 commit comments

Comments
 (0)