Skip to content

bpo-16970: Adding error message for invalid args#14844

Merged
miss-islington merged 5 commits into
python:masterfrom
tmblweed:fix-issue-16970
Aug 2, 2019
Merged

bpo-16970: Adding error message for invalid args#14844
miss-islington merged 5 commits into
python:masterfrom
tmblweed:fix-issue-16970

Conversation

@tmblweed

@tmblweed tmblweed commented Jul 18, 2019

Copy link
Copy Markdown
Contributor

BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors

https://bugs.python.org/issue16970

Automerge-Triggered-By: @gvanrossum

@tmblweed tmblweed changed the title BPO -16970: Adding error message for invalid args bpo -16970: Adding error message for invalid args Jul 18, 2019
@tmblweed tmblweed changed the title bpo -16970: Adding error message for invalid args bpo -16970:Adding error message for invalid args Jul 19, 2019
@tmblweed tmblweed changed the title bpo -16970:Adding error message for invalid args bpo-16970:Adding error message for invalid args Jul 19, 2019

@mangrisano mangrisano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gvanrossum gvanrossum changed the title bpo-16970:Adding error message for invalid args bpo-16970: Adding error message for invalid args Jul 31, 2019
@gvanrossum
gvanrossum self-requested a review July 31, 2019 21:58
@gvanrossum

Copy link
Copy Markdown
Member

@gvanrossum Please review.

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, most of this is from the original patch on bpo by Robert Leenders (apparently abandoned due to lack of code review years ago). I find the tests a little over-engineered but not enough so to request changes. Thanks for powering through this, @tmblweed!

@gvanrossum

Copy link
Copy Markdown
Member

I'll wait ~24 hours to see if other core devs want to chime in, then I'll merge it.

@miss-islington
miss-islington merged commit 4b3e975 into python:master Aug 2, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @tmblweed for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-15074 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 2, 2019
BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors

https://bugs.python.org/issue16970
(cherry picked from commit 4b3e975)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @tmblweed, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4b3e97592376d5f8a3b75192b399a2da1be642cb 3.7

@miss-islington miss-islington self-assigned this Aug 2, 2019
miss-islington added a commit that referenced this pull request Aug 2, 2019
BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors

https://bugs.python.org/issue16970
(cherry picked from commit 4b3e975)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors


https://bugs.python.org/issue16970
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors


https://bugs.python.org/issue16970
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
BPO -16970: Adding error message for invalid args

Applied the patch argparse-v2 patch issue 16970, ran patch check and the test suite, test_argparse with 0 errors


https://bugs.python.org/issue16970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants