fix(tests): fix a test broken in Python 3.12.8
Metadata
Current evaluation
Merged a fix for a test failing after Python 3.12.8 updated argparse choices quoting. Approved by two reviewers, passed CI, and adjusted one file to match the new standard library behavior.
Suggested action: —
No scores available.
Issue body
Since 3.12.8, argparse 'choices' are no longer quoted. Ref: https://github.com/python/cpython/pull/11776
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix for a test failing after Python 3.12.8 updated argparse choices quoting. Approved by two reviewers, passed CI, and adjusted one file to match the new standard library behavior. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix for a test failure caused by Python 3.12.8 unquoting argparse choices. The update aligns test expectations with the new CPython behavior to restore compatibility. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #617 test: make tests work in python 3.12+ | craft-parts | merged | Merged to update the test suite for Python 3.12+ compatibility. Approved by two reviewers, the change modifies five files (+36/-26 lines) to resolve version-specific test failures. | |
| #1567 test: enable python 3.12 tests | charmcraft | merged | Python 3.12 test configuration was merged following approval from two reviewers and successful CI checks. The update modified four files, adjusting five lines to enable testing for the new Python version. | |
| #3206 tests: add missing asserts to python unit tests | snapcraft | merged | Merged update adding missing asserts to Python unit tests. Fixed broken tests after removing virtual environment activate usage. Approved by one reviewer, passed CI, and modified one file with 22 additions and 16 deletions. |