test_peg_generator failures on some buildbots #139604
Copy link
Copy link
Closed as duplicate
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
One of those PRs made the test_peg_generator tests fail (see https://buildbot.python.org/#/builders/469):
sysconfig --generate-posix-varscan hang on cyclic variable definitions #136097: Fix sysconfig._parse_makefile() (gh-136097: Fix sysconfig._parse_makefile() #136166) by @serhiy-storchaka- test_venv.test_special_chars_csh fails on NetBSD #139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue (gh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue #139341) by @furkanonder (I don't think it's the case here).
- creating venv Python3.13 on CIFS mounted drive fails ENODATA #133951: Remove lib64->lib symlink in venv creation (gh-133951: Remove lib64->lib symlink in venv creation #137139) by @Cycloctane (cc @FFY00)
- Remove deprecated parameter alias for
importlib.resources.files#138044: Remove deprecated parameter alias forimportlib.resources.files(gh-138044: Remove deprecated parameter alias forimportlib.resources.files#138059) @donbarbos
The failure seems to be setuptools being not present and I don't know why. It could be the lib64->lib symlink that is no more here or the change in importlib.resources.files. I don't have time now to investigate.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Reacted by Rui Xi
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
StanFromIreland commentedon Oct 5, 2025
It seems most likely, the test creates a
venv.Testing it here.
StanFromIreland commentedon Oct 5, 2025
Yep, in the run (There are several other failures, but they seem to be unrelated) the failing
test_peg_generatortests pass, therefore, it is a7a4855 / #133951.Cycloctane commentedon Oct 5, 2025
pr #137139 does have a breaking change. I think the root cause of the failing test is here:
cpython/Lib/test/test_peg_generator/test_c_parser.py
Lines 101 to 108 in 13dc2fd
Only platlib is added to syspath. Also adding purelib should fix the problem. I'm now testing and working on a pr for it.
StanFromIreland commentedon Oct 5, 2025
Should this be closed as a duplicate of #133951 since it is still open?
picnixz commentedon Oct 5, 2025
I wasn't sure which one was the faulty commit but now I can indeed close it as a duplicate.