Skip to content

Commit 09a1289

Browse files
richardlauaddaleax
authored andcommitted
test: update test-child-process-spawn-loop for Python 3
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]>
1 parent 2e95550 commit 09a1289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/pummel/test-child-process-spawn-loop.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const N = 40;
3030
letfinished=false;
3131

3232
functiondoSpawn(i){
33-
constchild=spawn('python',['-c',`print${SIZE} * "C"`]);
33+
constchild=spawn('python',['-c',`print(${SIZE} * "C")`]);
3434
letcount=0;
3535

3636
child.stdout.setEncoding('ascii');

0 commit comments

Comments
(0)