Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bpo-44986: Removed trailing white spaces
  • Loading branch information
SengerM committed Aug 22, 2023
commit 8ed80456b260b2648f61dd734425d8e58f4468ac
8 changes: 4 additions & 4 deletions Lib/test/test_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3930,13 +3930,13 @@ class TestHelpWithPercentageSymbols(HelpTestCase):
"""Test a help message including % symbols"""
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.

Suggested change
"""Test a help message including % symbols"""
"""Test help output that includes % symbols"""

parser_signature = Sig(prog='PROG', description='Just a test code.')
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.

Suggested change
parser_signature = Sig(prog='PROG', description='Just a test code.')
parser_signature = Sig(prog='PROG', description='Just a test program.')

argument_signatures = [
Sig('--somearg', metavar='somearg',
Sig('--somearg', metavar='somearg',
help='Now you dont need to escape this: %, and you will not get nonsensical errors!'),
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.

Suggested change
help='Now you dont need to escape this: %, and you will not get nonsensical errors!'),
help='No escape required for %'),

Sig('--date', metavar='when', help='A date in format %Y-%m-%d',
Sig('--date', metavar='when', help='A date in format %Y-%m-%d',
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.

Suggested change
Sig('--date', metavar='when', help='A date in format %Y-%m-%d',
Sig('--date', metavar='when', help='A date in %Y-%m-%d format',

dest=f'date', type=str, required=True),
Sig('bar', nargs='?', type=int, default=42,
Sig('bar', nargs='?', type=int, default=42,
help='the bar to %(prog)s (default: %(default)s)'),
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.

Suggested change
help='the bar to %(prog)s (default: %(default)s)'),
help='The bar to %(prog)s (default: %(default)s)'),

Sig('--weirdarg', metavar='weird', dest=f'weird', type=str,
Sig('--weirdarg', metavar='weird', dest=f'weird', type=str,
required=True, help='A weird arg with 1 %, 2 %%% and 3 %%%%%'),
]

Expand Down