From 46d183c86ec72b6b1bb70525b0719d1cf8b90593 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 26 Jun 2020 07:18:51 -0400 Subject: [PATCH] test: update test-child-process-spawn-loop for Python 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes `SyntaxError: Missing parentheses in call to 'print'.` error when `python` resolves to Python 3. Signed-off-by: Richard Lau PR-URL: https://github.com/nodejs/node/pull/34071 Refs: https://github.com/nodejs/node/pull/29298 Reviewed-By: James M Snell Reviewed-By: Zeyu Yang Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca --- test/pummel/test-child-process-spawn-loop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pummel/test-child-process-spawn-loop.js b/test/pummel/test-child-process-spawn-loop.js index f6d8207df85b9b..4dc218161125bf 100644 --- a/test/pummel/test-child-process-spawn-loop.js +++ b/test/pummel/test-child-process-spawn-loop.js @@ -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');