Skip to content

Commit

Permalink
test: use python3 instead of python
Browse files Browse the repository at this point in the history
On some platforms, such as macOS, the `python` command is no longer
available by default.

PR-URL: nodejs/node#44545
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
lpinca authored and guangwong committed Jan 3, 2023
1 parent ced45c0 commit c5d28fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-set-blocking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c5d28fd

Please sign in to comment.