Skip to content

Commit

Permalink
test: update test-child-process-spawn-loop for Python 3
Browse files Browse the repository at this point in the history
Fixes `SyntaxError: Missing parentheses in call to 'print'.` error when
`python` resolves to Python 3.

Signed-off-by: Richard Lau <riclau@uk.ibm.com>

PR-URL: #34071
Refs: #29298
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
richardlau authored and MylesBorins committed Jul 16, 2020
1 parent 6be685a commit 46d183c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-child-process-spawn-loop.js
Expand Up @@ -30,7 +30,7 @@ const N = 40;
let finished = false;

function doSpawn(i) {
const child = spawn('python', ['-c', `print ${SIZE} * "C"`]);
const child = spawn('python', ['-c', `print(${SIZE} * "C")`]);
let count = 0;

child.stdout.setEncoding('ascii');
Expand Down

0 comments on commit 46d183c

Please sign in to comment.