We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e43a7 commit 8d63f14Copy full SHA for 8d63f14
Lib/test/test_embed.py
@@ -1491,8 +1491,12 @@ def test_init_setpythonhome(self):
1491
}
1492
self.default_program_name(config)
1493
env = {'TESTHOME': home, 'PYTHONPATH': paths_str}
1494
+ # When running from source, TESTHOME will be the build directory, which
1495
+ # isn't a valid home unless _is_python_build is set. getpath will then
1496
+ # fail to find the standard library and show a warning, so we need to
1497
+ # ignore stderr.
1498
self.check_all_configs("test_init_setpythonhome", config,
- api=API_COMPAT, env=env)
1499
+ api=API_COMPAT, env=env, ignore_stderr=True)
1500
1501
def test_init_is_python_build_with_home(self):
1502
# Test _Py_path_config._is_python_build configuration (gh-91985)
0 commit comments