@@ -9,11 +9,16 @@ import { exec } from 'child_process';
9
9
import * as path from 'path' ;
10
10
import { Uri } from 'vscode' ;
11
11
import '../../../client/common/extensions' ;
12
- import { IInterpreterLocatorService , WORKSPACE_VIRTUAL_ENV_SERVICE } from '../../../client/interpreter/contracts' ;
12
+ import {
13
+ IInterpreterLocatorService , WORKSPACE_VIRTUAL_ENV_SERVICE
14
+ } from '../../../client/interpreter/contracts' ;
13
15
import { IServiceContainer } from '../../../client/ioc/types' ;
14
- import { deleteFiles , isOs , isPythonVersionInProcess , OSType , PYTHON_PATH , rootWorkspaceUri , waitForCondition } from '../../common' ;
16
+ import {
17
+ deleteFiles , isOs , isPythonVersionInProcess , OSType ,
18
+ PYTHON_PATH , rootWorkspaceUri , waitForCondition
19
+ } from '../../common' ;
15
20
import { IS_MULTI_ROOT_TEST } from '../../constants' ;
16
- import { initialize , multirootPath } from '../../initialize' ;
21
+ import { initialize , IS_VSTS , multirootPath } from '../../initialize' ;
17
22
18
23
const timeoutMs = 60_000 ;
19
24
suite ( 'Interpreters - Workspace VirtualEnv Service' , function ( ) {
@@ -52,7 +57,12 @@ suite('Interpreters - Workspace VirtualEnv Service', function () {
52
57
53
58
suiteSetup ( async function ( ) {
54
59
// skip for Linux CI, see #3848
55
- if ( isOs ( OSType . Linux ) || await isPythonVersionInProcess ( undefined , '2' ) ) {
60
+ if ( isOs ( OSType . Linux ) && IS_VSTS ) {
61
+ return this . skip ( ) ;
62
+ }
63
+
64
+ // skip for Python < 3, no venv support
65
+ if ( await isPythonVersionInProcess ( undefined , '2' ) ) {
56
66
return this . skip ( ) ;
57
67
}
58
68
0 commit comments