Implementation name "python" is hard-coded in test_venv
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Bug report
Bug description:
The behavior of venv was changed in 48d926269963.
Before this change, libpath was hard-coded as python%d.%d. It has now been replaced with sysconfig.get_path(..., scheme='venv').
However, while this patch was applied, the corresponding test, test_venv was not updated and was left unchanged. As a result, test_venv now fails when sysconfig is overridden.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-143000
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the test_venv test and review the venv change in commit 48d926269963, especially the sysconfig override behavior. Update the test's expected implementation name so it reflects the current venv path lookup, then run test_venv and confirm it passes when sysconfig is overridden.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100