Skip to content

spec_arg's __bool__ is called while initializing NonCallableMock #86698

@idanw206

Description

@idanw206
mannequin
BPO 42532
Nosy @cjw296, @voidspace, @lisroach, @mariocj89, @tirkarthi, @idanw206
PRs
  • bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function #23613
  • [3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH-23613) #23676
  • 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 2020-12-06.22:45:57.462>
    created_at = <Date 2020-12-02.07:29:30.286>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = "spec_arg's __bool__ is called while initializing NonCallableMock"
    updated_at = <Date 2020-12-14.05:49:25.243>
    user = 'https://github.com/idanw206'

    bugs.python.org fields:

    activity = <Date 2020-12-14.05:49:25.243>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-06.22:45:57.462>
    closer = 'idanweiss97'
    components = ['Library (Lib)']
    creation = <Date 2020-12-02.07:29:30.286>
    creator = 'idanweiss97'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42532
    keywords = ['patch']
    message_count = 4.0
    messages = ['382403', '382483', '382590', '382952']
    nosy_count = 7.0
    nosy_names = ['cjw296', 'michael.foord', 'python-dev', 'lisroach', 'mariocj89', 'xtreak', 'idanweiss97']
    pr_nums = ['23613', '23676']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42532'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.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