From b8b34d2b50fa2b373489b3eebd99f6780cccd876 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Thu, 11 Jul 2019 16:37:07 -0400 Subject: [PATCH] Dont assume python isnt installed --- __tests__/finder.test.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/__tests__/finder.test.ts b/__tests__/finder.test.ts index 44f10bd..48ce454 100644 --- a/__tests__/finder.test.ts +++ b/__tests__/finder.test.ts @@ -1,6 +1,5 @@ import io = require('@actions/io'); import fs = require('fs'); -import os = require('os'); import path = require('path'); 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) let thrown = false; try { - await finder.findPythonVersion('3.x', 'x64'); + await finder.findPythonVersion('3.300000', 'x64'); } catch { 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) 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(); - }); });