Repository navigation
test_embed.test_init_pyvenv_cfg() fails #128690
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jan 9, 2025 The test is mocking an installation, and we now return more accurate information since the prefix comes from the runtime library instead of
pyvenv.cfg, so we can just skip the test when running with a shared library, sincepyvenv.cfgis no longer relevant here.- added a commit that references this issue
on Jan 11, 2025 FWIW, this failure apparently can also arise in non-shared builds and can have a fatal impact on builds where it does fail since
test_embedis one of the tests run for PGO profiling with--enable-optimizations. See #128771 for more details.- added a commit that references this issue
on Jan 13, 2025 With release manager approval, #128771 was merged to temporarily avoid using
test_embedin the PGO profile builds which are used in some release builds. I'm marking this as adeferred blockerso we don't forget to resolve the main issue and restore use oftest_embed.Reacted by Yan Yanchii- changed the title
[-]`test_embed.test_init_pyvenv_cfg` fails[/-][+][macOS] `test_embed.test_init_pyvenv_cfg` fails[/+]on Jan 21, 2025 Is it possible to reproduce this issue on operating systems other than macOS? Or is the issue specific to macOS?
This test fails also on Fedora Linux
- changed the title
[-][macOS] `test_embed.test_init_pyvenv_cfg` fails[/-][+]`test_embed.test_init_pyvenv_cfg()` fails[/+]on Jan 21, 2025 This test fails also on Fedora Linux
Oh ok, I managed to reproduce the bug on Fedora 41 using commands:
./configure --prefix=/usr --exec-prefix=/usr --with-platlibdir=lib64 --enable-shared --with-pydebug make clean make LD_LIBRARY_PATH=$PWD ./python -m test -v test_embed -m test_init_pyvenv_cfgI wrote PR #129137 to update test_embed for the
getpath.pyexec_prefix change.I updated test_embed with the change b23b27b.
- moved this from Todo to Done in Release and Deferred blockers 🚫
on Jan 23, 2025
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
Bug report
Bug description:
Trying to build Python from main branch and running tests on MacOS 15.2 fails on
test_embed.test_init_pyvenv_cfg.After bisecting found out 34e840f9ddd commit to be the reason. cc @FFY00
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs