Commit 1090d66
test(cli): skip invalid-command snapshot on Python 3.12.0-3.12.6 (#1982)
Closes #1864.
The reference snapshots for `test_invalid_command` reflect the
no-quote argparse error format that landed in CPython 3.13 and was
backported to 3.12.7 (gh-129019). On Python 3.12.0-3.12.6 argparse
still prints quoted choices, so the snapshot diff fails for those
patch releases.
Skip the test on 3.12.0-3.12.6 with a precise `skipif` rather than
maintaining a duplicate snapshot. The CI matrix already runs on
recent 3.12.x where the test is exercised; users on older patches
just see the test as `s` instead of a hard failure.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a92dbdc commit 1090d66
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
0 commit comments