Skip to content

Commit 37eb1f8

Browse files
Fix test_embed.
1 parent 1fc1198 commit 37eb1f8

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Lib/test/test_embed.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
398398
'module_search_paths': GET_DEFAULT_CONFIG,
399399
'module_search_paths_set': 1,
400400
'platlibdir': sys.platlibdir,
401-
'stdlib_dir': GET_DEFAULT_CONFIG,
402401

403402
'site_import': 1,
404403
'bytes_warning': 0,
@@ -427,7 +426,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
427426
'pathconfig_warnings': 1,
428427
'_init_main': 1,
429428
'_isolated_interpreter': 0,
430-
'use_frozen_modules': True,
429+
'use_frozen_modules': False,
431430
}
432431
if MS_WINDOWS:
433432
CONFIG_COMPAT.update({
@@ -508,7 +507,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
508507
'exec_prefix',
509508
'program_name',
510509
'home',
511-
'stdlib_dir',
512510
# program_full_path and module_search_path are copied indirectly from
513511
# the core configuration in check_path_config().
514512
]
@@ -1136,9 +1134,6 @@ def test_init_setpath(self):
11361134
'base_prefix': '',
11371135
'exec_prefix': '',
11381136
'base_exec_prefix': '',
1139-
# The current getpath.c doesn't determine the stdlib dir
1140-
# in this case.
1141-
'stdlib_dir': '',
11421137
}
11431138
self.default_program_name(config)
11441139
env = {'TESTPATH': os.path.pathsep.join(paths)}
@@ -1159,9 +1154,6 @@ def test_init_setpath_config(self):
11591154
'base_prefix': '',
11601155
'exec_prefix': '',
11611156
'base_exec_prefix': '',
1162-
# The current getpath.c doesn't determine the stdlib dir
1163-
# in this case.
1164-
'stdlib_dir': '',
11651157
# overriden by PyConfig
11661158
'program_name': 'conf_program_name',
11671159
'base_executable': 'conf_executable',
@@ -1251,7 +1243,6 @@ def test_init_setpythonhome(self):
12511243
'exec_prefix': exec_prefix,
12521244
'base_exec_prefix': exec_prefix,
12531245
'pythonpath_env': paths_str,
1254-
'stdlib_dir': home,
12551246
}
12561247
self.default_program_name(config)
12571248
env = {'TESTHOME': home,
@@ -1291,9 +1282,6 @@ def test_init_pybuilddir(self):
12911282
'base_executable': executable,
12921283
'executable': executable,
12931284
'module_search_paths': module_search_paths,
1294-
# The current getpath.c doesn't determine the stdlib dir
1295-
# in this case.
1296-
'stdlib_dir': None,
12971285
}
12981286
env = self.copy_paths_by_env(config)
12991287
self.check_all_configs("test_init_compat_config", config,
@@ -1343,9 +1331,6 @@ def test_init_pyvenv_cfg(self):
13431331
'base_executable': executable,
13441332
'executable': executable,
13451333
'module_search_paths': paths,
1346-
# The current getpath.c doesn't determine the stdlib dir
1347-
# in this case.
1348-
'stdlib_dir': None,
13491334
}
13501335
path_config = {}
13511336
if MS_WINDOWS:

0 commit comments

Comments
 (0)