Skip to content

Commit d8b5280

Browse files
committed
Don't blindly create paths
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 9cb1166 commit d8b5280

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Lib/test/test_embed.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,10 +1479,6 @@ def test_init_setpythonhome(self):
14791479
stdlib = os.path.join(home, sys.platlibdir, f'python{version}{ABI_THREAD}')
14801480
expected_paths = self.module_search_paths(prefix=home, exec_prefix=home)
14811481

1482-
# Create the expected paths to avoid the bad stdlib dir warning
1483-
for entry in expected_paths:
1484-
os.makedirs(entry, exist_ok=True)
1485-
14861482
config = {
14871483
'home': home,
14881484
'module_search_paths': expected_paths,
@@ -1524,10 +1520,6 @@ def test_init_is_python_build_with_home(self):
15241520
stdlib = os.path.join(home, sys.platlibdir, f'python{version}{ABI_THREAD}')
15251521
expected_paths = self.module_search_paths(prefix=home, exec_prefix=home)
15261522

1527-
# Create the expected paths to avoid the bad stdlib dir warning
1528-
for entry in expected_paths:
1529-
os.makedirs(entry, exist_ok=True)
1530-
15311523
config = {
15321524
'home': home,
15331525
'module_search_paths': expected_paths,

0 commit comments

Comments
 (0)