]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 9 Jun 2018 01:28:02 +0000 (18:28 -0700)
committerGitHub <noreply@github.com>
Sat, 9 Jun 2018 01:28:02 +0000 (18:28 -0700)
commit4e6bd247aa955056626bf0cf8dc1c65a587b871f
tree69e07ef44048d9a32c49852e0bc81076463021cd
parent458ed1b237150f5c59b6ab3e1a5241a672ac8cbd
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)

- bugfix and test for fragile metavar handling in argparse (see
  bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2018-05-23-00-26-27.bpo-11874.glK5iP.rst [new file with mode: 0644]