Skip to content

gh-154419: Find the fish shell in test_venv#154420

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:venv-fish-game
Jul 22, 2026
Merged

gh-154419: Find the fish shell in test_venv#154420
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:venv-fish-game

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 22, 2026

Copy link
Copy Markdown
Member

shutil.which('fish') can find the unrelated "Go Fish" game (see fish(6)), which is shipped on NetBSD, OpenBSD and DragonFly BSD. On DragonFly BSD /usr/games precedes /usr/local/bin in PATH, so the game is found even when the fish shell is installed.

Search PATH for an executable which behaves like the fish shell instead. Verified with the fish shell installed on Linux, DragonFly BSD, NetBSD, OpenBSD and Solaris: the test now runs on all of them.

shutil.which('fish') can find the unrelated "Go Fish" game, which is
shipped on several BSD systems.  Search PATH for an executable which
behaves like the fish shell instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 22, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news labels Jul 22, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 22, 2026 05:43
@serhiy-storchaka
serhiy-storchaka merged commit 458367e into python:main Jul 22, 2026
59 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 458367e60c14fd1b443af4ed7a3fd5135b6d0c35 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 458367e60c14fd1b443af4ed7a3fd5135b6d0c35 3.14

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 458367e60c14fd1b443af4ed7a3fd5135b6d0c35 3.13

@serhiy-storchaka serhiy-storchaka removed needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant