| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Python 3.14.5 (released 2026-05-10) reverts the unquoted `choose from` format in argparse error messages via CPython gh-130750. The checked-in fixture `test_invalid_command_py_3_14_invalidCommand_.txt` was generated against 3.14.0-3.14.4 (unquoted), so the test fails when CI picks up 3.14.5. Skip only the affected `arg=invalidCommand` parametrization on 3.14.5+ via `pytest.param(..., marks=pytest.mark.skipif(...))`; `arg=--invalid-arg` is unaffected (its fixture is the "required arguments" error which uses the metavar, not the choice list). Tracking a more durable normalization-based fix in #1990. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #1991 +/- ##
=======================================
Coverage 98.23% 98.23%
=======================================
Files 61 61
Lines 2779 2779
=======================================
Hits 2730 2730
Misses 49 49 ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Partially addresses #1990 — short-term skip only; the longer-term normalization fix (option C in the issue) is still tracked there.
Python 3.14.5 (released 2026-05-10) reverts the unquoted choose from format in argparse error messages via CPython gh-130750:
The checked-in fixture tests/test_cli/test_invalid_command_py_3_14_invalidCommand_.txt was generated against 3.14.0-3.14.4 (unquoted), so test_invalid_command[py_3.14-invalidCommand] fails as soon as the GitHub-hosted runner upgrades to 3.14.5. Master's last successful CI run was on 2026-05-09 (commit 1eb8cde6) on 3.14.4; runs on or after 2026-05-11 fail.
This PR skips only the affected parametrization on 3.14.5+ via pytest.param(..., marks=pytest.mark.skipif(...)). The companion arg='--invalid-arg' case is unaffected (its fixture is the the following arguments are required: error, which uses the metavar, not the choice list).
The longer-term normalization-based fix is intentionally left as a follow-up under #1990 so this PR stays narrowly scoped to unblocking CI.
Checklist
Was generative AI tooling used to co-author this PR?
Generated-by: GitHub Copilot CLI following the guidelines
Code Changes
Documentation Changes
N/A.
Expected Behavior
On Python 3.14.5+, test_invalid_command[py_3.14-invalidCommand] is skipped with a clear reason pointing at #1990 and CPython gh-130750. On all other Python versions, behavior is unchanged. #1990 stays open for the normalization-based follow-up.
Steps to Test This Pull Request
Additional Context
CPython issue: python/cpython#130750
Python 3.14.5 changelog: https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-5-final
Surfaced while working on #1846.