8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PYTHON
assertSnapshot
1 parent 89599e0 commit edb75aeCopy full SHA for edb75ae
test/common/assertSnapshot.js
@@ -78,8 +78,11 @@ async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ...
78
return;
79
}
80
const flags = common.parseTestFlags(filename);
81
- const executable = tty ? path.join(__dirname, '../..', 'tools/pseudo-tty.py') : process.execPath;
82
- const args = tty ? [process.execPath, ...flags, filename] : [...flags, filename];
+ const executable = tty ? (process.env.PYTHON || 'python3') : process.execPath;
+ const args =
83
+ tty ?
84
+ [path.join(__dirname, '../..', 'tools/pseudo-tty.py'), process.execPath, ...flags, filename] :
85
+ [...flags, filename];
86
const { stdout, stderr } = await common.spawnPromisified(executable, args, options);
87
await assertSnapshot(transform(`${stdout}${stderr}`), filename);
88