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 <[email protected]>

PR-URL: #34071
Refs: #29298
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
richardlau authored and addaleax committed Sep 21, 2020
1 parent 2e95550 commit 09a1289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-child-process-spawn-loop.js
Original file line number Diff line number Diff line change
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 09a1289

Please sign in to comment.