Skip to content

Commit b613933

Browse files
committed
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 cb673e1 commit b613933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const N = 40;
3030
let finished = false;
3131

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

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

0 commit comments

Comments
 (0)