python / python/cpython

Implementation name "python" is hard-coded in test_venv

Open
#142,999 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tests topic-venv type-bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.