mirror of
https://github.com/actions/setup-python.git
synced 2024-11-10 05:41:06 +07:00
Merge branch 'master' of https://github.com/actions/setup-python into v2-workflow
This commit is contained in:
commit
cfc8b215b2
@ -1,6 +1,5 @@
|
|||||||
import io = require('@actions/io');
|
import io = require('@actions/io');
|
||||||
import fs = require('fs');
|
import fs = require('fs');
|
||||||
import os = require('os');
|
|
||||||
import path = require('path');
|
import path = require('path');
|
||||||
|
|
||||||
const toolDir = path.join(
|
const toolDir = path.join(
|
||||||
@ -42,7 +41,7 @@ describe('Finder tests', () => {
|
|||||||
// This will throw if it doesn't find it in the cache (because no such version exists)
|
// This will throw if it doesn't find it in the cache (because no such version exists)
|
||||||
let thrown = false;
|
let thrown = false;
|
||||||
try {
|
try {
|
||||||
await finder.findPythonVersion('3.x', 'x64');
|
await finder.findPythonVersion('3.300000', 'x64');
|
||||||
} catch {
|
} catch {
|
||||||
thrown = true;
|
thrown = true;
|
||||||
}
|
}
|
||||||
@ -56,15 +55,4 @@ describe('Finder tests', () => {
|
|||||||
// This will throw if it doesn't find it in the cache (because no such version exists)
|
// This will throw if it doesn't find it in the cache (because no such version exists)
|
||||||
await finder.findPythonVersion('pypy2', 'x64');
|
await finder.findPythonVersion('pypy2', 'x64');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Errors if PyPy is not installed', async () => {
|
|
||||||
// This will throw if it doesn't find it in the cache (because no such version exists)
|
|
||||||
let thrown = false;
|
|
||||||
try {
|
|
||||||
await finder.findPythonVersion('pypy3', 'x64');
|
|
||||||
} catch {
|
|
||||||
thrown = true;
|
|
||||||
}
|
|
||||||
expect(thrown).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user