Skip to content

Commit 06f3a81

Browse files
committed
Use isPythonVersion
1 parent 98a3e81 commit 06f3a81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/common/terminals/environmentActivationProviders/terminalActivation.testvirtualenvs.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { FileSystem } from '../../../../client/common/platform/fileSystem';
1212
import { IExperimentsManager } from '../../../../client/common/types';
1313
import { PYTHON_VIRTUAL_ENVS_LOCATION } from '../../../ciConstants';
1414
import {
15+
isPythonVersion,
1516
PYTHON_PATH,
1617
resetGlobalInterpreterPathSetting,
1718
restorePythonPathInWorkspaceRoot,
@@ -172,9 +173,9 @@ suite('Activation of Environments in Terminal', () => {
172173
});
173174

174175
test('Should activate with venv', async function () {
175-
if (process.env.CI_PYTHON_VERSION && process.env.CI_PYTHON_VERSION.startsWith('2.')) {
176-
// tslint:disable-next-line: no-invalid-this
177-
this.skip();
176+
if (await isPythonVersion('2')) {
177+
// tslint:disable-next-line:no-invalid-this
178+
return this.skip();
178179
}
179180
await testActivation(envPaths.venvPath);
180181
});

0 commit comments

Comments
 (0)