From 85f56aed112ade070bd8daf04a88a0ada823b838 Mon Sep 17 00:00:00 2001 From: Mathis Wiehl Date: Thu, 4 Jul 2024 15:08:38 +0200 Subject: [PATCH] test: use python3 instead of python in pummel test As f9bfe785ee4 already did for a regular test, replace `python` with `python3` in the only `pummel` test spawning it so that it can be run on platforms that don't provide a `python` binary anymore, like modern macOS or some Linux distributions (e.g. Fedora) without specifying a `PYTHON` env var. PR-URL: https://github.com/nodejs/node/pull/53057 Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell --- 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 f9f66ce5803..7577dd72447 100644 --- a/test/pummel/test-child-process-spawn-loop.js +++ b/test/pummel/test-child-process-spawn-loop.js @@ -24,7 +24,7 @@ const common = require('../common'); const assert = require('assert'); const spawn = require('child_process').spawn; -const python = process.env.PYTHON || 'python'; +const python = process.env.PYTHON || (common.isWindows ? 'python' : 'python3'); const SIZE = 1000 * 1024; const N = 40;