Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cfc8b21

Browse filesBrowse files
author
Danny McCormick
committed
Merge branch 'master' of https://github.com/actions/setup-python into v2-workflow
2 parents 943c5bc + b8b34d2 commit cfc8b21
Copy full SHA for cfc8b21

File tree

Expand file treeCollapse file tree

1 file changed

+1
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-13
lines changed

‎__tests__/finder.test.ts

Copy file name to clipboardExpand all lines: __tests__/finder.test.ts
+1-13Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.