@@ -1555,7 +1555,7 @@ def test_init_is_python_build_with_home(self):
15551555 exec_prefix = exec_prefix , base_exec_prefix = exec_prefix )
15561556 self .check_all_configs ("test_init_is_python_build" , config ,
15571557 api = API_COMPAT , env = env ,
1558- ignore_stderr = True ) # ignore missing stdlib warning)
1558+ ignore_stderr = True ) # ignore missing stdlib warning
15591559
15601560 def copy_paths_by_env (self , config ):
15611561 all_configs = self ._get_expected_config ()
@@ -1578,6 +1578,8 @@ def test_init_pybuilddir(self):
15781578 # The stdlib dir is dirname(executable) + VPATH + 'Lib'
15791579 stdlibdir = os .path .normpath (os .path .join (tmpdir , vpath , 'Lib' ))
15801580 os .mkdir (libdir )
1581+ # Create the directory to avoid the bad stdlib dir warning
1582+ os .makedirs (stdlibdir )
15811583
15821584 filename = os .path .join (tmpdir , 'pybuilddir.txt' )
15831585 with open (filename , "w" , encoding = "utf8" ) as fp :
@@ -1616,6 +1618,9 @@ def test_init_pybuilddir_win32(self):
16161618 # The stdlib dir is dirname(executable) + VPATH + 'Lib'
16171619 stdlibdir = os .path .normpath (os .path .join (tmpdir , vpath , 'Lib' ))
16181620
1621+ # Create the directory to avoid the bad stdlib dir warning
1622+ os .makedirs (stdlibdir )
1623+
16191624 filename = os .path .join (tmpdir , 'pybuilddir.txt' )
16201625 with open (filename , "w" , encoding = "utf8" ) as fp :
16211626 fp .write (tmpdir )
0 commit comments