try to allow pypy3, pypy3.6 or pypy3.7 syntax

This commit is contained in:
mattip 2020-11-09 15:01:27 +02:00
parent 41b7212b16
commit 0ed4f287d5
4 changed files with 30 additions and 20 deletions

View file

@ -89,10 +89,10 @@ describe('Finder tests', () => {
});
it('Finds PyPy if it is installed', async () => {
const pythonDir: string = path.join(toolDir, 'PyPy', '2.0.0', 'x64');
const pythonDir: string = path.join(toolDir, 'PyPy', '3.7.4', 'x64');
await io.mkdirP(pythonDir);
fs.writeFileSync(`${pythonDir}.complete`, 'hello');
// 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('pypy3', 'x64');
});
});