From: alclarks <57201106+alclarks@users.noreply.github.com> Date: Fri, 21 Feb 2020 08:48:36 +0000 (+0000) Subject: bpo-9495: avoid confusing chained exception in argparse test (GH-17120) X-Git-Tag: v3.9.0a4~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4331c56b4f6fe6f18caf19fc1ecf9fec14f7066;p=thirdparty%2FPython%2Fcpython.git bpo-9495: avoid confusing chained exception in argparse test (GH-17120) --- diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index b095783a02e1..9899a53d6d19 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -105,7 +105,8 @@ def stderr_to_parser_error(parse_args, *args, **kwargs): code = sys.exc_info()[1].code stdout = sys.stdout.getvalue() stderr = sys.stderr.getvalue() - raise ArgumentParserError("SystemExit", stdout, stderr, code) + raise ArgumentParserError( + "SystemExit", stdout, stderr, code) from None finally: sys.stdout = old_stdout sys.stderr = old_stderr diff --git a/Misc/ACKS b/Misc/ACKS index b11ee9cdea67..976c26eb9117 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -312,6 +312,7 @@ Gilles Civario Chris Clark Diana Clarke Laurie Clark-Michalek +Alexander Clarkson Mike Clarkson Andrew Clegg Brad Clements