-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-venvRelated to the venv moduleRelated to the venv moduletype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The dst
variable in https://github.com/python/cpython/blob/main/Lib/venv/__init__.py#L396 should be named dest
. Otherwise it throws the UnboundLocalError: cannot access local variable 'dst' where it is not associated with a value
.
I have a PR that fixes this and also adds a test covering this code path.
This is occurring on Python 3.13 and 3.14.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-venvRelated to the venv moduleRelated to the venv moduletype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error