@@ -8,6 +8,7 @@ import * as path from 'path';
8
8
import * as TypeMoq from 'typemoq' ;
9
9
import { Uri , WorkspaceFolder } from 'vscode' ;
10
10
import { IWorkspaceService } from '../../client/common/application/types' ;
11
+ import { PlatformService } from '../../client/common/platform/platformService' ;
11
12
import { IConfigurationService , ICurrentProcess , IPythonSettings } from '../../client/common/types' ;
12
13
import { EnvironmentVariables } from '../../client/common/variables/types' ;
13
14
import { GlobalVirtualEnvironmentsSearchPathProvider } from '../../client/interpreter/locators/services/globalVirtualEnvService' ;
@@ -83,7 +84,11 @@ suite('Virtual environments', () => {
83
84
const paths = pathProvider . getSearchPaths ( Uri . file ( '' ) ) ;
84
85
85
86
const homedir = os . homedir ( ) ;
86
- const expected = [ path . join ( homedir , 'foo' ) , 'root' , path . join ( 'root' , '.direnv' ) ] . map ( item => Uri . file ( item ) . fsPath ) ;
87
- expect ( paths ) . to . deep . equal ( expected , 'Workspace venv folder search list does not match.' ) ;
87
+ const isWindows = new PlatformService ( ) ;
88
+ const fixCase = ( item : string ) => isWindows ? item . toUpperCase ( ) : item ;
89
+ const expected = [ path . join ( homedir , 'foo' ) , 'root' , path . join ( 'root' , '.direnv' ) ]
90
+ . map ( item => Uri . file ( item ) . fsPath )
91
+ . map ( fixCase ) ;
92
+ expect ( paths . map ( fixCase ) ) . to . deep . equal ( expected , 'Workspace venv folder search list does not match.' ) ;
88
93
} ) ;
89
94
} ) ;
0 commit comments