Skip to content

Commit 6c35f33

Browse files
lpincaRafaelGSS
authored andcommitted
test: use python3 instead of python
On some platforms, such as macOS, the `python` command is no longer available by default. PR-URL: #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>
1 parent f5549af commit 6c35f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-child-process-set-blocking.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const assert = require('assert');
2525
const ch = require('child_process');
2626

2727
const SIZE = 100000;
28-
const python = process.env.PYTHON || 'python';
28+
const python = process.env.PYTHON || (common.isWindows ? 'python' : 'python3');
2929

3030
const cp = ch.spawn(python, ['-c', `print(${SIZE} * "C")`], {
3131
stdio: 'inherit'

0 commit comments

Comments
 (0)