8000 Dont assume python isnt installed · un0mic/setup-python@b8b34d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8b34d2

Browse files
author
Danny McCormick
committed
Dont assume python isnt installed
1 parent 6923ce3 commit b8b34d2

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

__tests__/finder.test.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import io = require('@actions/io');
22
import fs = require('fs');
3-
import os = require('os');
43
import path = require('path');
54

65
const toolDir = path.join(
@@ -42,7 +41,7 @@ describe('Finder tests', () => {
4241
// This will throw if it doesn't find it in the cache (because no such version exists)
4342
let thrown = false;
4443
try {
45-
await finder.findPythonVersion('3.x', 'x64');
44+
await finder.findPythonVersion('3.300000', 'x64');
4645
} catch {
4746
thrown = true;
4847
}
@@ -56,15 +55,4 @@ describe('Finder tests', () => {
5655
// This will throw if it doesn't find it in the cache (because no such version exists)
5756
await finder.findPythonVersion('pypy2', 'x64');
5857
});
59-
60-
it('Errors if PyPy is not installed', async () => {
61-
// This will throw if it doesn't find it in the cache (because no such version exists)
62-
let thrown = false;
63-
try {
64-
await finder.findPythonVersion('pypy3', 'x64');
65-
} catch {
66-
thrown = true;
67-
}
68-
expect(thrown).toBeTruthy();
69-
});
7058
});

0 commit comments

Comments
 (0)
0