Repository navigation
test_lazy_choices_help fails on Python 3.14 #1641
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingnewNeeds triage. Comments are welcome!Needs triage. Comments are welcome!
Description
Activity
- addedbugSomething isn't workingSomething isn't workingnewNeeds triage. Comments are welcome!Needs triage. Comments are welcome!
on Jul 10, 2025 If I make getter raise, this is the traceback:
File ".../httpie/tests/test_cli_utils.py", line 62, in test_lazy_choices_help parser.add_argument( ~~~~~~~~~~~~~~~~~~~^ '--lazy-option', ^^^^^^^^^^^^^^^^ ...<5 lines>... cache=False # for test purposes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib64/python3.14/argparse.py", line 1561, in add_argument self._check_help(action) ~~~~~~~~~~~~~~~~^^^^^^^^ File "/usr/lib64/python3.14/argparse.py", line 1744, in _check_help if action.help and hasattr(self, "_get_formatter"): ^^^^^^^^^^^ File ".../httpie/httpie/cli/utils.py", line 60, in help self.load(), ~~~~~~~~~^^ File ".../httpie/httpie/cli/utils.py", line 51, in load self._obj = self.getter() ~~~~~~~~~~~^^ File ".../httpie/tests/test_cli_utils.py", line 55, in getter raise RuntimeError('xxx') RuntimeError: xxx
gh-65865: Raise early errors for invalid help strings in argparse
- added a commit that references this issue
on Jul 10, 2025 - added a commit that references this issue
on Sep 25, 2025 - added a commit that references this issue
on Apr 13, 2026 Covered in #1816 along with another bug fix.
- added a commit that references this issue
on Aug 22, 2026
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnewNeeds triage. Comments are welcome!Needs triage. Comments are welcome!
Checklist
Minimal reproduction code and steps
This is with Python 3.14.0b3 and b4 alike.
Current result
Expected result
Tests pass.