test: use print() function in both Python 2 and 3
PR-URL: https://github.com/nodejs/node/pull/29298 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
fd964de1b7
commit
b2cce432f3
@ -26,7 +26,7 @@ const ch = require('child_process');
|
|||||||
|
|
||||||
const SIZE = 100000;
|
const SIZE = 100000;
|
||||||
|
|
||||||
const cp = ch.spawn('python', ['-c', `print ${SIZE} * "C"`], {
|
const cp = ch.spawn('python', ['-c', `print(${SIZE} * "C")`], {
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user