]> granicus.if.org Git - python/commit
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 Jun 2018 11:05:58 +0000 (04:05 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Jun 2018 11:05:58 +0000 (04:05 -0700)
commit376c272d68cca0975ff0be3d12abf5f67da342d7
treeb7cc3f0203804f36910d54c929e87161b21ea79b
parenta0accc0f8e747145a3ee36b91338777bc94b3348
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]