From c5d28fd4de71b6910d207b68f8504f0de4cda56c Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 10 Sep 2022 15:43:46 +0200 Subject: [PATCH] test: use python3 instead of python On some platforms, such as macOS, the `python` command is no longer available by default. PR-URL: https://github.com/nodejs/node/pull/44545 Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Daeyeon Jeong Reviewed-By: Darshan Sen --- 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 e2620cd84c8..6dcfa931417 100644 --- a/test/parallel/test-child-process-set-blocking.js +++ b/test/parallel/test-child-process-set-blocking.js @@ -25,7 +25,7 @@ const assert = require('assert'); const ch = require('child_process'); const SIZE = 100000; -const python = process.env.PYTHON || 'python'; +const python = process.env.PYTHON || (common.isWindows ? 'python' : 'python3'); const cp = ch.spawn(python, ['-c', `print(${SIZE} * "C")`], { stdio: 'inherit'