Repository navigation
Add regression test for uv#22537 - #2622
Draft
astral-automations-bot[bot] wants to merge 1 commit into
Draft
astral-automations-bot[bot] wants to merge 1 commit into
astral-automations-bot[bot] wants to merge 1 commit into
Conversation
charliermarsh
pushed a commit
to astral-sh/uv
that referenced
this pull request
Oct 14, 2026
- Fix venv activation command for ksh shell in `crates/uv/src/commands/venv.rs` - Add `create_venv_ksh` test in `crates/uv/tests/python/venv.rs` to create venv with `ksh` shell Code for test from 2 PRs created by astral-automations-bot: - astral-sh/pull/2622 - astral-sh/pull/2623 Fix #22537 --- Tests OK for `venv` with `cargo nextest`: ```sh $ cargo nextest run -E 'test(venv::create_venv_ksh)' (...) Finished `test` profile [unoptimized + debuginfo] target(s) in 45.10s SETUP PASS [ 0.009s] setup-hook-unix: scripts/nextest-setup-hook-unix.sh PASS [ 0.992s] uv::python venv::create_venv_ksh ──────────── Summary [ 1.014s] 1 test run: 1 passed, 5413 skipped $ cargo nextest run -E 'test(venv::)' (...) PASS [ 3.232s] uv::python venv::seed PASS [ 1.408s] uv::python venv::virtual_dependency_group PASS [ 1.336s] uv::python venv::virtual_empty PASS [ 5.201s] uv::python venv::seed_keeps_distutils_patch_on_py39 PASS [ 5.100s] uv::python venv::seed_older_python_version PASS [ 5.481s] uv::python venv::seed_skips_distutils_patch_on_py310 ──────────── Summary [ 17.187s] 61 tests run: 61 passed, 5353 skipped ``` --- Tested on OpenBSD with `ksh` and `bash` shell for venv creation => output for activation command. - bash shell ```sh $ echo $SHELL /usr/local/bin/bash $ uv venv venv-bash Using CPython 3.14.8 interpreter at: /usr/local/bin/python Creating virtual environment at: venv-bash Activate with: source venv-bash/bin/activate ``` - ksh shell ```sh openbsd-dev$ echo $SHELL /bin/ksh openbsd-dev$ uv venv venv-ksh Using CPython 3.14.8 interpreter at: /usr/local/bin/python Creating virtual environment at: venv-ksh Activate with: . venv-ksh/bin/activate ``` --------- Signed-off-by: Laurent Cheylus <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a minimal integration test that reproduces astral-sh#22537.