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 committed Jul 4, 2024
1 parent f1ac7df commit 85f56ae
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 85f56ae

Please sign in to comment.