Skip to content

Commit 3e043c2

Browse files
authored
Merge pull request swiftlang#32847 from compnerd/octriples
test: use the `o` octal specifier for python 3 compatibility
2 parents c9f2562 + b6caab8 commit 3e043c2

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
@@ -62,7 +62,7 @@ def write_input_file(args, ast, d, n):
6262

6363
def ensure_tmpdir(d):
6464
if d is not None and not os.path.exists(d):
65-
os.makedirs(d, 0700)
65+
os.makedirs(d, 0o700)
6666
return tempfile.mkdtemp(dir=d)
6767

6868

@@ -74,7 +74,7 @@ def supports_stats_output_dir(args):
7474
sd = os.path.join(d, "stats-probe")
7575

7676
try:
77-
os.makedirs(sd, 0700)
77+
os.makedirs(sd, 0o700)
7878
# Write a trivial test program and try running with
7979
# -stats-output-dir
8080
testpath = os.path.join(sd, "test.swift")

0 commit comments

Comments
 (0)