-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Open
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Description
Feature or enhancement
Proposal:
Description
Lib/test/test_decimal.py currently uses the deprecated optparse module for parsing command-line arguments. This task involves migrating it to use argparse.
Proposed Changes
- Replace
optparseimports withargparse. - Update argument parsing logic to use
argparse.ArgumentParser. - Ensure all existing command-line options (
--debug,--skip) are supported. - Fix any formatting issues (e.g.
%in help strings).
Verification
- Run
python Lib/test/test_decimal.py --help - Run
python Lib/test/test_decimal.py --skip
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)