8000 bpo-37910: checks format_usage wrapping to ensure whitespaces do not … · python/cpython@30c69ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 30c69ff

Browse files
Franklin, SamuelFranklin, Samuel
authored andcommitted
bpo-37910: checks format_usage wrapping to ensure whitespaces do not break argparse usage help text. Fixed whitespace issue.
1 parent 646fbad commit 30c69ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_argparse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,7 +5252,7 @@ def test_metavar_Carriage_Return_and_Line_Feed(self):
52525252
self.do_test_no_exception(metavar='\r\n')
52535253

52545254
# The rest would be unlikely in practice but should not fail
5255-
5255+
52565256
def test_metavar_vLine_Tabulation(self):
52575257
self.do_test_no_exception(metavar='\v')
52585258

@@ -5299,7 +5299,7 @@ def test_metavar_ASCII_backspace(self):
52995299
self.do_test_no_exception(metavar='\b')
53005300

53015301
# Unicode whitespaces per wikipedia.org/wiki/Whitespace_character
5302-
5302+
53035303
def test_metavar_unicode_horizontal_tab(self):
53045304
self.do_test_no_exception(metavar='\u0009')
53055305

@@ -5408,7 +5408,7 @@ def test_metavar_unicode_blank_symbol(self):
54085408

54095409
def test_metavar_unicode_open_box(self):
54105410
self.do_test_no_exception(metavar='\u2423')
5411-
5411+
54125412

54135413
class TestInvalidNargs(TestCase):
54145414

@@ -5506,7 +5506,7 @@ class TestHelpUsageWrapAllowsNilAndTab(HelpTestCase):
55065506
--Tab tab
55075507
'''
55085508
version = ''
5509-
5509+
55105510

55115511
class TestExitOnError(TestCase):
55125512

0 commit comments

Comments
 (0)
0