Skip to content

Commit

Permalink
test: use python3 instead of python in pummel test
Browse files Browse the repository at this point in the history
As f9bfe78 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: #53057
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
fahrradflucht authored and marco-ippolito committed Aug 19, 2024
1 parent a5f5b45 commit 6dc1898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-child-process-spawn-loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6dc1898

Please sign in to comment.