Closed MarkDaoust closed 3 months ago
https://docs.python.org/3/whatsnew/changelog.html
gh-121018: Fixed issues where argparse.ArgumentParser.parse_args() did not honor exit_on_error=False. Based on patch by Ben Hsing.
argparse.ArgumentParser.parse_args()
We set exit_on_error=False, but then patch exit to throw a custom exception, catch it, and raise SystemExit (?).
exit_on_error=False
One test is failing, blocking PRs.
Test should pass.
No response
Description of the bug:
https://docs.python.org/3/whatsnew/changelog.html
gh-121018: Fixed issues where
argparse.ArgumentParser.parse_args()
did not honor exit_on_error=False. Based on patch by Ben Hsing.We set
exit_on_error=False
, but then patch exit to throw a custom exception, catch it, and raise SystemExit (?).One test is failing, blocking PRs.
Actual vs expected behavior:
Test should pass.
Any other information you'd like to share?
No response