File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1352,14 +1352,12 @@ def test_init_pyvenv_cfg(self):
13521352 'base_executable' : executable ,
13531353 'executable' : executable ,
13541354 'module_search_paths' : paths ,
1355- # The current getpath.c doesn't determine the stdlib dir
1356- # in this case.
1357- 'stdlib_dir' : None ,
13581355 }
13591356 path_config = {}
13601357 if MS_WINDOWS :
13611358 config ['base_prefix' ] = pyvenv_home
13621359 config ['prefix' ] = pyvenv_home
1360+ config ['stdlib_dir' ] = os .path .join (pyvenv_home , 'lib' )
13631361
13641362 ver = sys .version_info
13651363 dll = f'python{ ver .major } '
@@ -1368,6 +1366,10 @@ def test_init_pyvenv_cfg(self):
13681366 dll += '.DLL'
13691367 dll = os .path .join (os .path .dirname (executable ), dll )
13701368 path_config ['python3_dll' ] = dll
1369+ else :
1370+ # The current getpath.c doesn't determine the stdlib dir
1371+ # in this case.
1372+ config ['stdlib_dir' ] = None
13711373
13721374 env = self .copy_paths_by_env (config )
13731375 self .check_all_configs ("test_init_compat_config" , config ,
You can’t perform that action at this time.
0 commit comments