Skip to content

unittest.mock.call does not chain __getitem__ to another _Call object #82153

@blhsing

Description

@blhsing
mannequin
BPO 37972
Nosy @cjw296, @voidspace, @mariocj89, @tirkarthi, @blhsing
PRs
  • bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable #15565
  • [3.8] bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable (GH-15565) #15965
  • 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 2019-10-10.14:40:24.310>
    created_at = <Date 2019-08-28.20:33:01.517>
    labels = ['3.8', 'type-bug', 'library', '3.9']
    title = 'unittest.mock.call does not chain __getitem__ to another _Call object'
    updated_at = <Date 2020-01-29.16:25:00.824>
    user = 'https://github.com/blhsing'

    bugs.python.org fields:

    activity = <Date 2020-01-29.16:25:00.824>
    actor = 'cjw296'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-10-10.14:40:24.310>
    closer = 'xtreak'
    components = ['Library (Lib)']
    creation = <Date 2019-08-28.20:33:01.517>
    creator = 'blhsing'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37972
    keywords = ['patch']
    message_count = 8.0
    messages = ['350688', '351830', '351846', '351877', '351903', '352102', '354383', '360973']
    nosy_count = 6.0
    nosy_names = ['cjw296', 'michael.foord', 'python-dev', 'mariocj89', 'xtreak', 'blhsing']
    pr_nums = ['15565', '15965']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37972'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
      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