Commit 2fffc0f
test: skip invalidCommand argparse fixture on Python 3.14.5+ (#1990)
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>1 parent 4d99415 commit 2fffc0f
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
0 commit comments