diff --git a/src/commands/manifest/bazel/python-shim.test.mts b/src/commands/manifest/bazel/python-shim.test.mts index 05063fc71..3a6700faa 100644 --- a/src/commands/manifest/bazel/python-shim.test.mts +++ b/src/commands/manifest/bazel/python-shim.test.mts @@ -7,6 +7,7 @@ import { readlinkSync, rmSync, symlinkSync, + writeFileSync, } from 'node:fs' import os from 'node:os' import path from 'node:path' @@ -66,7 +67,8 @@ describe('provisionPythonShim', () => { cwd, process.platform === 'win32' ? 'python.exe' : 'python', ) - copyFileSync(process.execPath, executable) + // The mocked probe only needs an executable path for discovery. + writeFileSync(executable, '', { mode: 0o755 }) const probe = vi.mocked(execFileSync) probe.mockImplementationOnce(() => { throw Object.assign(new Error('spawn timed out'), { code: 'ETIMEDOUT' })