Skip to content

Commit 370b0ec

Browse files
lpincajuanarbol
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 <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent e26d95e commit 370b0ec

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)