]> granicus.if.org Git - python/commit
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
authorwim glenn <wim.glenn@gmail.com>
Fri, 8 Jun 2018 10:12:49 +0000 (05:12 -0500)
committerNick Coghlan <ncoghlan@gmail.com>
Fri, 8 Jun 2018 10:12:49 +0000 (20:12 +1000)
commit66f02aa32f1e4adb9f24cf186f8c495399d5ce9b
treea054fae38e3c08132961014dfa76961ac132f326
parentff6c07729211fb98431a2793e074d07a21e0650a
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
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]