]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91984: Fix trailing spaces in multiline test strings in test_argparse (GH-91986)
authorAbhigyan Bose <abhigyandeepbose@gmail.com>
Thu, 28 Apr 2022 11:29:24 +0000 (16:59 +0530)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 11:29:24 +0000 (14:29 +0300)
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst [new file with mode: 0644]

index 1f03b7fb24261bc7a605252a0347e00fab29e169..fd107faee47658fbd57ade69f46185aa078a235f 100644 (file)
@@ -2265,8 +2265,7 @@ class TestAddSubparsers(TestCase):
             main description
 
             positional arguments:
-              foo         
-
+              foo         \n
             options:
               -h, --help  show this help message and exit
         '''))
@@ -2282,8 +2281,7 @@ class TestAddSubparsers(TestCase):
             main description
 
             positional arguments:
-              {}          
-
+              {}          \n
             options:
               -h, --help  show this help message and exit
         '''))
diff --git a/Misc/NEWS.d/next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst b/Misc/NEWS.d/next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst
new file mode 100644 (file)
index 0000000..82c2907
--- /dev/null
@@ -0,0 +1 @@
+Modified test strings in test_argparse.py to not contain trailing spaces before end of line.