]> 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:33:50 +0000 (04:33 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Jun 2018 11:33:50 +0000 (04:33 -0700)
commit842985f6c70484ed7b8fc30d0bc05aec73236a98
tree655d4d42b9d6ea6bb2c0e65c05f8774c19fca995
parentd16d72f555447fbedacdc01bb14f380afca705ae
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]