From 88dd22795925a8f47d38737ca8067eeb3f0a13aa Mon Sep 17 00:00:00 2001 From: Abhigyan Bose Date: Thu, 28 Apr 2022 16:59:24 +0530 Subject: gh-91984: Fix trailing spaces in multiline test strings in test_argparse (GH-91986) --- Lib/test/test_argparse.py | 6 ++---- .../next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2022-04-27-18-30-00.gh-issue-91984.LxAB11.rst diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index 1f03b7f..fd107fa 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -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 index 0000000..82c2907 --- /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. -- cgit v0.12