[Python-checkins] gh-91984: Fix trailing spaces in multiline test strings in test_argparse (GH-91986)

serhiy-storchaka webhook-mailer at python.org
Thu Apr 28 07:30:10 EDT 2022


https://github.com/python/cpython/commit/88dd22795925a8f47d38737ca8067eeb3f0a13aa
commit: 88dd22795925a8f47d38737ca8067eeb3f0a13aa
branch: main
author: Abhigyan Bose <abhigyandeepbose at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2022-04-28T14:29:24+03:00
summary:

gh-91984: Fix trailing spaces in multiline test strings in test_argparse (GH-91986)

files:
A Misc/NEWS.d/next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst
M Lib/test/test_argparse.py

diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index 1f03b7fb24261..fd107faee4765 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -2265,8 +2265,7 @@ def test_help_blank(self):
             main description
 
             positional arguments:
-              foo         
-
+              foo         \n
             options:
               -h, --help  show this help message and exit
         '''))
@@ -2282,8 +2281,7 @@ def test_help_blank(self):
             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
index 0000000000000..82c2907bf4daa
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst
@@ -0,0 +1 @@
+Modified test strings in test_argparse.py to not contain trailing spaces before end of line.



More information about the Python-checkins mailing list