()
| 4 | const { resolvePythonSpec, resetPythonSpecCacheForTest } = require("../tools/lib/run"); |
| 5 | |
| 6 | function makeNotFoundError() { |
| 7 | const err = new Error("not found"); |
| 8 | err.code = "ENOENT"; |
| 9 | return err; |
| 10 | } |
| 11 | |
| 12 | test("resolvePythonSpec: prefers python3 when available", () => { |
| 13 | resetPythonSpecCacheForTest(); |