Skip to content

Commit

Permalink
test: use the correct python binary name on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 24, 2024
1 parent 87f5702 commit 0324d60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/__tests__/python.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ describe("setup-python", () => {

const installInfo = await setupPython(getVersion("python", "true", await ubuntuVersion()), directory, process.arch)

await testBin("python", ["--version"], installInfo.binDir)
const python = process.platform === "darwin" ? "python3" : "python"
await testBin(python, ["--version"], installInfo.binDir)
})

afterAll(async () => {
Expand Down

0 comments on commit 0324d60

Please sign in to comment.