| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,8 +78,11 @@ async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ... | |||
| 78 | 78 | return; | |
| 79 | 79 | } | |
| 80 | 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]; | ||
| 81 | + const executable = tty ? (process.env.PYTHON || 'python3') : process.execPath; | ||
| 82 | + const args = | ||
| 83 | + tty ? | ||
| 84 | + [path.join(__dirname, '../..', 'tools/pseudo-tty.py'), process.execPath, ...flags, filename] : | ||
| 85 | + [...flags, filename]; | ||
| 83 | 86 | const { stdout, stderr } = await common.spawnPromisified(executable, args, options); | |
| 84 | 87 | await assertSnapshot(transform(`${stdout}${stderr}`), filename); | |
| 85 | 88 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments