Skip to content

Unittest incorrect result with argparse.ArgumentError in self asserRaises context #89086

Description

@piscvau
mannequin
BPO 44923
Nosy @serhiy-storchaka, @iritkatriel
Files
  • bug_unittest_exception.py: reproduces the error
  • 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 = None
    closed_at = <Date 2021-08-19.17:24:09.740>
    created_at = <Date 2021-08-16.09:52:33.738>
    labels = ['3.8', 'type-bug', 'tests', 'invalid']
    title = 'Unittest incorrect result with argparse.ArgumentError in self asserRaises context'
    updated_at = <Date 2021-08-19.17:24:09.739>
    user = 'https://bugs.python.org/piscvau'

    bugs.python.org fields:

    activity = <Date 2021-08-19.17:24:09.739>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-19.17:24:09.740>
    closer = 'serhiy.storchaka'
    components = ['Tests']
    creation = <Date 2021-08-16.09:52:33.738>
    creator = 'piscvau'
    dependencies = []
    files = ['50222']
    hgrepos = []
    issue_num = 44923
    keywords = []
    message_count = 3.0
    messages = ['399640', '399644', '399645']
    nosy_count = 3.0
    nosy_names = ['serhiy.storchaka', 'piscvau', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44923'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

      Fields

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions