Skip to content

Commit d38285d

Browse files
committed
Fix test_embed
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 08846b2 commit d38285d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Lib/test/test_embed.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,8 @@ def test_init_setpythonhome(self):
14921492
self.default_program_name(config)
14931493
env = {'TESTHOME': home, 'PYTHONPATH': paths_str}
14941494
self.check_all_configs("test_init_setpythonhome", config,
1495-
api=API_COMPAT, env=env)
1495+
api=API_COMPAT, env=env,
1496+
ignore_stderr=True) # ignore missing stdlib warning
14961497

14971498
def test_init_is_python_build_with_home(self):
14981499
# Test _Py_path_config._is_python_build configuration (gh-91985)
@@ -1536,7 +1537,8 @@ def test_init_is_python_build_with_home(self):
15361537
env['NEGATIVE_ISPYTHONBUILD'] = '1'
15371538
config['_is_python_build'] = 0
15381539
self.check_all_configs("test_init_is_python_build", config,
1539-
api=API_COMPAT, env=env)
1540+
api=API_COMPAT, env=env,
1541+
ignore_stderr=True) # ignore missing stdlib warning
15401542

15411543
env['NEGATIVE_ISPYTHONBUILD'] = '0'
15421544
config['_is_python_build'] = 1
@@ -1552,7 +1554,8 @@ def test_init_is_python_build_with_home(self):
15521554
config.update(prefix=prefix, base_prefix=prefix,
15531555
exec_prefix=exec_prefix, base_exec_prefix=exec_prefix)
15541556
self.check_all_configs("test_init_is_python_build", config,
1555-
api=API_COMPAT, env=env)
1557+
api=API_COMPAT, env=env,
1558+
ignore_stderr=True) # ignore missing stdlib warning)
15561559

15571560
def copy_paths_by_env(self, config):
15581561
all_configs = self._get_expected_config()

0 commit comments

Comments
 (0)