Skip to content

Commit ad48b93

Browse files
authored
Merge pull request #31011 from RLovelett/python3-fix-print
test: Add parens to print for Python3 compatibility
2 parents 66e8572 + 17b52ca commit ad48b93

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/Driver/batch_mode_response_files.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// that they also use response files correctly when their argument lists are
33
// too long.
44

5-
// RUN: %{python} -c 'for i in range(500001): print "-DTEST_" + str(i)' > %t.resp
5+
// RUN: %{python} -c 'for i in range(500001): print("-DTEST_" + str(i))' > %t.resp
66
// RUN: %swiftc_driver -driver-print-jobs -module-name batch -enable-batch-mode -j 1 -c %S/Inputs/main.swift %S/Inputs/lib.swift @%t.resp 2>&1 > %t.jobs.txt
77
// RUN: %FileCheck %s < %t.jobs.txt -check-prefix=BATCH
88

test/Driver/response-file-merge-modules.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %{python} -c 'for i in range(500001): print "-DTEST_" + str(i)' > %t.resp
1+
// RUN: %{python} -c 'for i in range(500001): print("-DTEST_" + str(i))' > %t.resp
22
// RUN: %swiftc_driver -driver-print-jobs -module-name merge -emit-module %S/Inputs/main.swift %S/Inputs/lib.swift @%t.resp 2>&1 > %t.jobs.txt
33
// RUN: %FileCheck %s < %t.jobs.txt -check-prefix=MERGE
44

test/Driver/response-file.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-build-swift -typecheck @%t.0.resp %s 2>&1 | %FileCheck %s -check-prefix=SHORT
33
// SHORT: warning: result of call to 'abs' is unused
44

5-
// RUN: %{python} -c 'for a in ["A", "B", "C", "D"]: print "-DTEST1" + a' > %t.1.resp
5+
// RUN: %{python} -c 'for a in ["A", "B", "C", "D"]: print("-DTEST1" + a)' > %t.1.resp
66
// RUN: %target-build-swift -typecheck @%t.1.resp %s 2>&1 | %FileCheck %s -check-prefix=MULTIPLE
77
// MULTIPLE: warning: result of call to 'abs' is unused
88

@@ -24,7 +24,7 @@
2424
// RUN: %target-build-swift -typecheck @%t.4B.resp 2>&1 | %FileCheck %s -check-prefix=RECURSIVE
2525
// RECURSIVE: warning: result of call to 'abs' is unused
2626

27-
// RUN: %{python} -c 'for i in range(500001): print "-DTEST5_" + str(i)' > %t.5.resp
27+
// RUN: %{python} -c 'for i in range(500001): print("-DTEST5_" + str(i))' > %t.5.resp
2828
// RUN: %target-build-swift -typecheck @%t.5.resp %s 2>&1 | %FileCheck %s -check-prefix=LONG
2929
// LONG: warning: result of call to 'abs' is unused
3030
// RUN: %empty-directory(%t/tmp)

0 commit comments

Comments
 (0)