Skip to content

Commit c55803d

Browse files
committed
Create stdlib dir on test_init_pybuilddir{,_win32}
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent d38285d commit c55803d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Lib/test/test_embed.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)