From 64461ee3c33e60b2861153e74e362856fdf67744 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2019 22:03:47 +0200 Subject: [PATCH] test: use print() function in both Python 2 and 3 PR-URL: https://github.com/nodejs/node/pull/29298 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Jiawen Geng Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott --- test/parallel/test-child-process-set-blocking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-child-process-set-blocking.js b/test/parallel/test-child-process-set-blocking.js index 51a079ef5fac73..b78b71e545b004 100644 --- a/test/parallel/test-child-process-set-blocking.js +++ b/test/parallel/test-child-process-set-blocking.js @@ -26,7 +26,7 @@ const ch = require('child_process'); const SIZE = 100000; -const cp = ch.spawn('python', ['-c', `print ${SIZE} * "C"`], { +const cp = ch.spawn('python', ['-c', `print(${SIZE} * "C")`], { stdio: 'inherit' });