Skip to content

argparse assertion failure with brackets in metavars #56083

Description

@htnieman
mannequin
BPO11874
Nosy@ncoghlan, @merwok, @IIIIllllIIIIllllIIIIllllIIIIllllIIIIll, @wimglenn, @vajrasky, @wm75, @spaceone, @miss-islington
PRs
  • bpo-11874 argparse assertion failure #1826
  • [3.7] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7527
  • [3.6] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7528
  • [3.7] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7530
  • [2.7] bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) #7553
  • Files
  • issue_11874.diff
  • unit_test_for_inner_bracket_metavar.txt: Unit test
  • unit_test_argparse.txt: Revamped unit test
  • fix_and_unit_test_for_argparse_inner_bracket_bug.txt: Fix and unit test for the argparse inner bracket metavar bug
  • format_usage.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee='https://github.com/ncoghlan'closed_at=<Date2018-06-09.10:53:29.284>created_at=<Date2011-04-19.08:20:50.571>labels= ['3.7', 'type-bug', 'library']
    title='argparse assertion failure with brackets in metavars'updated_at=<Date2018-06-09.10:53:29.283>user='https://bugs.python.org/htnieman'

    bugs.python.org fields:

    activity=<Date2018-06-09.10:53:29.283>actor='ncoghlan'assignee='ncoghlan'closed=Trueclosed_date=<Date2018-06-09.10:53:29.284>closer='ncoghlan'components= ['Library (Lib)']
    creation=<Date2011-04-19.08:20:50.571>creator='htnieman'dependencies= []
    files= ['21832', '30911', '30913', '30915', '35028']
    hgrepos= []
    issue_num=11874keywords= ['patch']
    message_count=23.0messages= ['134021', '134558', '134741', '149547', '193021', '193022', '193042', '193046', '193068', '193072', '193112', '193187', '216812', '230187', '230198', '262105', '294575', '295214', '319041', '319050', '319054', '319124', '319127']
    nosy_count=15.0nosy_names= ['ncoghlan', 'bethard', 'eric.araujo', 'ysj.ray', 'xuanji', 'htnieman', 'manveru', 'paul.j3', 'wim.glenn', 'vajrasky', 'wolma', 'mZarjk', 'spaceone', 'mattpr', 'miss-islington']
    pr_nums= ['1826', '7527', '7528', '7530', '7553']
    priority='high'resolution='fixed'stage='resolved'status='closed'superseder=Nonetype='behavior'url='https://bugs.python.org/issue11874'versions= ['Python 2.7', 'Python 3.4', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions